diff options
-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() |