Skip to content

Commit

Permalink
Update client/ayon_core/hosts/nuke/api/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Trllo <[email protected]>
  • Loading branch information
tokejepsen and iLLiCiTiT authored May 7, 2024
1 parent e9dc1d4 commit 72116cd
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions client/ayon_core/hosts/nuke/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,26 +173,9 @@ def create_error_report(context):

success = False

err = result["error"]
formatted_traceback = "".join(
traceback.format_exception(
type(err),
err,
err.__traceback__
)
)
fname = result["plugin"].__module__
if 'File "<string>", line' in formatted_traceback:
_, lineno, func, msg = err.traceback
fname = os.path.abspath(fname)
formatted_traceback = formatted_traceback.replace(
'File "<string>", line',
'File "{0}", line'.format(fname)
)

err = result["error"]
error_message += "\n"
error_message += formatted_traceback
error_message += err.formatted_traceback

return success, error_message

Expand Down

0 comments on commit 72116cd

Please sign in to comment.