diff options
author | Philipp Hörist <philipp@hoerist.com> | 2024-01-23 23:48:27 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2024-01-23 23:48:27 +0300 |
commit | c4bf2a689c2fb2e6d5f5ac4f7b22a5c4ac9e3dd5 (patch) | |
tree | ee9de19a507c7d64ae6af3d2ad846de84864cb7a | |
parent | 6c69081dd4b722c87b8a76956b61340dc26304ff (diff) |
-rw-r--r-- | gajim/common/app.py | 5 | ||||
-rw-r--r-- | gajim/gtk/exception.py | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gajim/common/app.py b/gajim/common/app.py index d0c694d23..82eb27f0c 100644 --- a/gajim/common/app.py +++ b/gajim/common/app.py @@ -287,7 +287,10 @@ def detect_dependencies() -> None: try: import sentry_sdk # noqa: F401 _dependencies['SENTRY_SDK'] = True - except ImportError: + except Exception: + # Sentry has a lot of side effects on import + # make sure this optional dependency does not prevent + # Gajim from starting pass # Print results diff --git a/gajim/gtk/exception.py b/gajim/gtk/exception.py index 6b3fa2fd5..b0f784993 100644 --- a/gajim/gtk/exception.py +++ b/gajim/gtk/exception.py @@ -52,7 +52,10 @@ from gajim.gtk.util import get_gtk_version try: import sentry_sdk -except ImportError: +except Exception: + # Sentry has a lot of side effects on import + # make sure this optional dependency does not prevent + # Gajim from starting pass _exception_in_progress = threading.Lock() |