We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1cfabe commit 7d4f0c8Copy full SHA for 7d4f0c8
amulet_map_editor/programs/edit/api/canvas/edit_canvas.py
@@ -290,12 +290,17 @@ def _run_operation(
290
elif isinstance(op.error, BaseSilentException):
291
pass
292
elif isinstance(op.error, BaseException):
293
- log.error(traceback.format_exc())
+ tb = "".join(
294
+ traceback.format_exception(
295
+ type(op.error), op.error, op.error.__traceback__
296
+ )
297
298
+ log.error(tb)
299
dialog = TracebackDialog(
300
self,
301
"Exception while running operation",
302
str(op.error),
- traceback.format_exc(),
303
+ tb,
304
)
305
dialog.ShowModal()
306
dialog.Destroy()
0 commit comments