Skip to content

Commit

Permalink
add error message to rsxml import failure
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMWhitehead committed Sep 9, 2024
1 parent 362e00a commit 22accd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
path = os.path.join(this_dir, '..', 'wheels', f'rsxml-{RSXML_VERSION}-py3-none-any.whl')
sys.path.append(path)
if not os.path.exists(path):
QgsMessageLog.logMessage(f'rsxml wheel not found at {path}.', 'Riverscapes Viewer', Qgis.Critical)
raise Exception(f'rsxml wheel not found at {path}.')
import rsxml
QgsMessageLog.logMessage(f'rsxml imported from wheel {path}', 'Riverscapes Viewer', Qgis.Info)

0 comments on commit 22accd7

Please sign in to comment.