mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
catch create errors
This commit is contained in:
parent
a7123e3cc1
commit
d87b1328c2
1 changed files with 9 additions and 1 deletions
|
|
@ -429,7 +429,15 @@ class CreateDialog(QtWidgets.QDialog):
|
|||
"variant": variant,
|
||||
"family": family
|
||||
}
|
||||
self.controller.create(family, subset_name, instance_data, options)
|
||||
|
||||
error_info = None
|
||||
try:
|
||||
self.controller.create(family, subset_name, instance_data, options)
|
||||
|
||||
except Exception as exc:
|
||||
# TODO better handling
|
||||
print(str(exc))
|
||||
|
||||
|
||||
if self.auto_close_checkbox.isChecked():
|
||||
self.hide()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue