Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2020-05-18 12:42:39 +0300
committerJaime van Kessel <nallath@gmail.com>2020-05-18 12:42:39 +0300
commit252be6352b5ea8f9b3f485d2c96043d4f089639d (patch)
treec5d2c39f391d7094c68350cf175f1553cd8ed5d4 /cura_app.py
parentd499c6fdfe68c7aeeed54df2dd1d8d5f31751050 (diff)
Prevent crash when sentry could not be initialized
Diffstat (limited to 'cura_app.py')
-rwxr-xr-xcura_app.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/cura_app.py b/cura_app.py
index 6c9839e79c..a78e7cabd1 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -63,14 +63,17 @@ if with_sentry_sdk:
# Errors to be ignored by Sentry
ignore_errors = [KeyboardInterrupt, MemoryError]
- sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
- before_send = CrashHandler.sentryBeforeSend,
- environment = sentry_env,
- release = "cura%s" % ApplicationMetadata.CuraVersion,
- default_integrations = False,
- max_breadcrumbs = 300,
- server_name = "cura",
- ignore_errors = ignore_errors)
+ try:
+ sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
+ before_send = CrashHandler.sentryBeforeSend,
+ environment = sentry_env,
+ release = "cura%s" % ApplicationMetadata.CuraVersion,
+ default_integrations = False,
+ max_breadcrumbs = 300,
+ server_name = "cura",
+ ignore_errors = ignore_errors)
+ except Exception:
+ with_sentry_sdk = False
if not known_args["debug"]:
def get_cura_dir_path():