Skip to content
Snippets Groups Projects
Commit 6013f575 authored by Lars Beckers's avatar Lars Beckers
Browse files

Fix python3.5 compatibility

parent bb2beb7b
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ try: ...@@ -75,7 +75,7 @@ try:
"release": get_git_revision(), "release": get_git_revision(),
} }
sentry.get_user_info = get_user_info sentry.get_user_info = get_user_info
except ModuleNotFoundError: except ImportError:
print("Raven not installed. Not sending issues to Sentry.") print("Raven not installed. Not sending issues to Sentry.")
except AttributeError: except AttributeError:
print("DSN not configured. Not sending issues to Sentry.") print("DSN not configured. Not sending issues to Sentry.")
...@@ -91,7 +91,7 @@ def make_celery(app, config): ...@@ -91,7 +91,7 @@ def make_celery(app, config):
raven_client = RavenClient(config.SENTRY_DSN) raven_client = RavenClient(config.SENTRY_DSN)
register_logger_signal(raven_client) register_logger_signal(raven_client)
register_signal(raven_client) register_signal(raven_client)
except ModuleNotFoundError: except ImportError:
print("Raven not installed. Not sending celery issues to Sentry.") print("Raven not installed. Not sending celery issues to Sentry.")
except AttributeError: except AttributeError:
print("DSN not configured. Not sending celery issues to Sentry.") print("DSN not configured. Not sending celery issues to Sentry.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment