Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
@present_exceptions() dumps to logger as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalkolar committed Mar 12, 2021
1 parent 67d94b7 commit fa5d6c1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions mesmerize/common/qdialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from functools import wraps
from . import get_project_manager, is_app
from typing import *
from logging import getLogger


"""
Expand Down Expand Up @@ -61,10 +62,13 @@ def fn(self, *args, **kwargs):
QMessageBox.Ok | QMessageBox.Help
)

if mb == QMessageBox.Help:
mb.exec_()


mb.exec_()
getLogger().info(
f"{e.__class__.__name__}: {e}\n"
f"{traceback.format_exc()}"
)

return fn
return catcher

Expand Down

0 comments on commit fa5d6c1

Please sign in to comment.