mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 17:04:54 +01:00
adde comment about bare except
This commit is contained in:
parent
609f08d317
commit
10714bb734
1 changed files with 2 additions and 0 deletions
|
|
@ -541,6 +541,8 @@ class CreateDialog(QtWidgets.QDialog):
|
|||
except CreatorError as exc:
|
||||
error_info = (str(exc), None)
|
||||
|
||||
# Use bare except because some hosts raise their exceptions that
|
||||
# do not inherit from python's `BaseException`
|
||||
except:
|
||||
exc_type, exc_value, exc_traceback = sys.exc_info()
|
||||
formatted_traceback = "".join(traceback.format_exception(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue