def report_exceptions(fn):
def wrapped(*args, **kwargs):
try:
fn(*args, **kwargs)
except Exception:
client = Sentry(
os.environ["SENTRY_DSN"],
transport=SentryHTTPTransport,
environment=os.environ["ENV"],
)
client.captureException()
raise
return wrapped
__init__.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录