mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Don't crash when failing to create Toolbox.qml dialogue
Basically we should never be raising the master Exception class, really. The enclosing class has error handling in case this returns None already, so this fix is easy. Contributes to Sentry issue CURA-Y5.
This commit is contained in:
parent
85bfb02228
commit
f8a88642c2
2 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2019 Ultimaker B.V.
|
||||
# Copyright (c) 2020 Ultimaker B.V.
|
||||
# Toolbox is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import json
|
||||
|
@ -232,7 +232,7 @@ class Toolbox(QObject, Extension):
|
|||
"licenseModel": self._license_model
|
||||
})
|
||||
if not dialog:
|
||||
raise Exception("Failed to create Marketplace dialog")
|
||||
return None
|
||||
return dialog
|
||||
|
||||
def _convertPluginMetadata(self, plugin_data: Dict[str, Any]) -> Optional[Dict[str, Any]]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue