对于任何 Python 项目来说,未捕获到的 exception 是恐怖且麻烦的。Sentry 是一个可以帮助你管理所有 exceptions 的开源项目,来自社交评论公司 Disqus。
Sentry 分为服务器和客户端两个部分,服务器是一个用 Django 写成的 web app,负责接收和呈现 exception 信息,及邮件发送等。
客户端除了支持 Python 外,也可以支持很多其他语言。
https://getsentry.com/signup/r_D0rG/如果你希望在自己的服务器上搭建 Sentry,那么这里有指南:
http://sentry.readthedocs.org/en/latest/quickstart/index.html这是一个对提高 Python 项目代码质量和稳定性十分有帮助的工具。