Philipp Hörist pushed to branch master at gajim / gajim


Commits:
c4bf2a68 by Philipp Hörist at 2024-01-23T21:48:27+01:00
fix: Don’t fail to start on sentry_sdk import error

- - - - -


2 changed files:

- gajim/common/app.py
- gajim/gtk/exception.py


Changes:

=====================================
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


=====================================
gajim/gtk/exception.py
=====================================
@@ -52,7 +52,10 @@
 
 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()



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/c4bf2a689c2fb2e6d5f5ac4f7b22a5c4ac9e3dd5

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/c4bf2a689c2fb2e6d5f5ac4f7b22a5c4ac9e3dd5
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to