Permalink
Browse files

flask: Use a weakref to hold onto the Sentry object when connecting t…

…o flask's got_request_exception signal
  • Loading branch information...
1 parent 2822728 commit dd3d64378e22faae67632233eb8a8217d9d66793 @rslinckx committed Jul 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 raven/contrib/flask/__init__.py
@@ -93,7 +93,7 @@ def init_app(self, app):
if self.logging:
setup_logging(SentryHandler(self.client))
- got_request_exception.connect(self.handle_exception, sender=app, weak=False)
+ got_request_exception.connect(self.handle_exception, sender=app)
def captureException(self, *args, **kwargs):
assert self.client, 'captureException called before application configured'

0 comments on commit dd3d643

Please sign in to comment.