From: Joar Wandborg Date: Fri, 22 Feb 2013 22:44:17 +0000 (+0100) Subject: Refactored raven plugin X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b9c5c97238e59791828d1689ac4f942861883eba;p=mediagoblin.git Refactored raven plugin --- diff --git a/mediagoblin/plugins/raven/__init__.py b/mediagoblin/plugins/raven/__init__.py index d6308d3b..624a615e 100644 --- a/mediagoblin/plugins/raven/__init__.py +++ b/mediagoblin/plugins/raven/__init__.py @@ -41,11 +41,12 @@ def setup_plugin(): _log.info('Setting up raven from SENTRY_DSN environment variable: {0}'\ .format(os.environ.get('SENTRY_DSN'))) client = Client() # Implicitly looks for SENTRY_DSN - - if client: - register_signal(client) else: _log.error('Could not set up client, missing sentry DSN') + return + + register_signal(client) + hooks = { 'setup': setup_plugin,