Apply suggestions from code review

Codestyle!
This commit is contained in:
Jaime van Kessel 2020-02-24 16:57:37 +01:00 committed by GitHub
parent 94e9753b6c
commit 9c0e6f9338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class CrashHandler:
return obj return obj
@staticmethod @staticmethod
def sentry_before_send(event, hint): def sentryBeforeSend(event, hint):
return CrashHandler.pruneSensitiveData(event) return CrashHandler.pruneSensitiveData(event)
def _createEarlyCrashDialog(self): def _createEarlyCrashDialog(self):

View File

@ -45,7 +45,7 @@ if with_sentry_sdk:
pass pass
sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564", sentry_sdk.init("https://5034bf0054fb4b889f82896326e79b13@sentry.io/1821564",
before_send = CrashHandler.sentry_before_send, before_send = CrashHandler.sentryBeforeSend,
environment = sentry_env, environment = sentry_env,
release = "cura%s" % ApplicationMetadata.CuraVersion, release = "cura%s" % ApplicationMetadata.CuraVersion,
default_integrations = False, default_integrations = False,