ok, test cases require this to pass

This commit is contained in:
E Rasche
2017-11-23 09:43:41 +01:00
parent ef8ed0ec3f
commit c6bf20df68
@@ -34,7 +34,7 @@ class SentryPlugin(ErrorPlugin):
self.custom_dsn = kwargs.get('custom_dsn', None)
self.sentry = None
# Use the built in one by default
if self.app.sentry_client:
if hasattr(self.app, 'sentry_client'):
self.sentry = self.app.sentry_client
# if they've set a custom one, override.