mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 03:04:23 +08:00
Prevent crash when sentry could not be initialized
This commit is contained in:
parent
d499c6fdfe
commit
252be6352b
19
cura_app.py
19
cura_app.py
@ -63,14 +63,17 @@ if with_sentry_sdk:
|
|||||||
|
|
||||||
# Errors to be ignored by Sentry
|
# Errors to be ignored by Sentry
|
||||||
ignore_errors = [KeyboardInterrupt, MemoryError]
|
ignore_errors = [KeyboardInterrupt, MemoryError]
|
||||||
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
|
try:
|
||||||
before_send = CrashHandler.sentryBeforeSend,
|
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
|
||||||
environment = sentry_env,
|
before_send = CrashHandler.sentryBeforeSend,
|
||||||
release = "cura%s" % ApplicationMetadata.CuraVersion,
|
environment = sentry_env,
|
||||||
default_integrations = False,
|
release = "cura%s" % ApplicationMetadata.CuraVersion,
|
||||||
max_breadcrumbs = 300,
|
default_integrations = False,
|
||||||
server_name = "cura",
|
max_breadcrumbs = 300,
|
||||||
ignore_errors = ignore_errors)
|
server_name = "cura",
|
||||||
|
ignore_errors = ignore_errors)
|
||||||
|
except Exception:
|
||||||
|
with_sentry_sdk = False
|
||||||
|
|
||||||
if not known_args["debug"]:
|
if not known_args["debug"]:
|
||||||
def get_cura_dir_path():
|
def get_cura_dir_path():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user