We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 67f4c72 commit 41dc754Copy full SHA for 41dc754
python/utils.py
@@ -155,14 +155,11 @@ def updateAvailablePlugins():
155
156
def pluginMetadata(packageName, fct):
157
""" fetch metadata from a plugin """
158
- try:
159
- # try to use values from metadata.txt if available
160
- if plugins_metadata_parser.has_key(packageName):
161
- return plugins_metadata_parser[packageName].get('general', fct)
162
- # otherwise fall back to old method, using __init__.py
163
- package = sys.modules[packageName]
164
- return getattr(package, fct)()
165
- except:
+
+ # use values from metadata.txt
+ if plugins_metadata_parser.has_key(packageName):
+ return plugins_metadata_parser[packageName].get('general', fct)
+ else:
166
return "__error__"
167
168
def loadPlugin(packageName):
0 commit comments