Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Merge 1755c60 into 7ddbb49
Browse files Browse the repository at this point in the history
  • Loading branch information
mindflayer committed Jul 17, 2013
2 parents 7ddbb49 + 1755c60 commit 8bca105
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions raven/contrib/flask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from __future__ import absolute_import

import os
import sys

from flask import request
from flask.signals import got_request_exception
Expand Down Expand Up @@ -115,6 +116,9 @@ def captureException(self, *args, **kwargs):
except RuntimeError:
# app is probably not configured yet
pass
exc_info = kwargs.get('exc_info')
if exc_info is None:
kwargs['exc_info'] = sys.exc_info()
return self.client.captureException(*args, **kwargs)

def captureMessage(self, *args, **kwargs):
Expand Down

0 comments on commit 8bca105

Please sign in to comment.