#1 preventing rich.traceback to crash the app

This commit is contained in:
sezanzeb 2020-12-05 11:14:16 +01:00 committed by sezanzeb
parent 1eb0177008
commit 4c73a95141
2 changed files with 4 additions and 2 deletions

View File

@ -39,7 +39,8 @@ from keymapper.daemon import Daemon
try:
from rich.traceback import install
install(show_locals=True)
except ImportError:
except Exception:
# since this is optional, just skip all exceptions
pass

View File

@ -40,7 +40,8 @@ from keymapper.dev.permissions import can_read_devices
try:
from rich.traceback import install
install(show_locals=True)
except ImportError:
except Exception:
# since this is optional, just skip all exceptions
pass