def catch_exception(f):
    @wraps(f)
    def inner(*args, **kwargs):
        try:
            return f(*args, **kwargs)
        except Exception:
            if getattr(sentry, 'app', None):
                sentry.captureException()
            raise
    return inner
Sends exception information to Sentry and reraises it.
dataset/ETHPy150Open cenk/pypi-notifier/manage.py/catch_exception