Skip to content

Commit

Permalink
Merge pull request #906 from Ultimaker/CURA-11029_appimage_include_bu…
Browse files Browse the repository at this point in the history
…ndled_plugins

Log error when plugin fails to register
  • Loading branch information
jellespijker authored Sep 18, 2023
2 parents 24ec6e6 + d7600bc commit 50511d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UM/PluginRegistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ def loadPlugin(self, plugin_id: str) -> None:
self.enablePlugin(plugin_id)
Logger.info(f"Loaded plugin {plugin_id} {plugin_version}")

except Exception:
except Exception as e:
Logger.log("w", "Plugin [%s] failed to register: %s", plugin_id, str(e))
self.removeCorruptedPluginMessage(plugin_id)

def _acceptedRemoveCorruptedPluginMessage(self, plugin_id: str, original_message: Message):
Expand Down

0 comments on commit 50511d9

Please sign in to comment.