From 7d33830ae75062995a36286ef5ac1f4e518eecfc Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Mon, 9 Mar 2020 15:06:55 +0100 Subject: Filter out KeyboardInterrupts and MemoryErrors --- cura_app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cura_app.py') 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(): -- cgit v1.2.3