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:
authorKostas Karmas <k.karmas@ultimaker.com>2020-03-09 17:06:55 +0300
committerKostas Karmas <k.karmas@ultimaker.com>2020-03-09 17:06:55 +0300
commit7d33830ae75062995a36286ef5ac1f4e518eecfc (patch)
treeec27cd3fd024a5a78b4887e19a52c34be966b59f /cura_app.py
parentd041131f84ead913734edb3bb83b88175ebdcd67 (diff)
Filter out KeyboardInterrupts and MemoryErrors
Diffstat (limited to 'cura_app.py')
-rwxr-xr-xcura_app.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cura_app.py b/cura_app.py
index 629091a156..572b02b77c 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -59,13 +59,16 @@ if with_sentry_sdk:
except IndexError:
pass
+ # 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")
+ server_name = "cura",
+ ignore_errors = ignore_errors)
if not known_args["debug"]:
def get_cura_dir_path():