Skip to content

Commit

Permalink
More informative message if ext module fails to load
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisterH authored and nyalldawson committed Jul 6, 2023
1 parent 5e29c75 commit 0420b15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/grassprovider/Grass7Algorithm.py
Expand Up @@ -148,7 +148,8 @@ def __init__(self, descriptionfile):
spec = importlib.util.spec_from_file_location('grassprovider.ext.' + name, extpath)
self.module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(self.module)
except Exception:
except Exception as e:
QgsMessageLog.logMessage(self.tr('Failed to load: {0}\n{1}').format(extpath, str(e)), 'Processing', Qgis.Critical)
pass

def createInstance(self):
Expand Down

0 comments on commit 0420b15

Please sign in to comment.