[fix] capture error snapshot only for 500 errors

This commit is contained in:
Rushabh Mehta 2016-02-15 15:42:42 +05:30
parent 1bd28389b5
commit 5b83a7abe3

View file

@ -148,10 +148,9 @@ def handle_exception(e):
if hasattr(frappe.local, "login_manager"):
frappe.local.login_manager.clear_cookies()
if http_status_code==500:
if http_status_code >= 500:
logger.error('Request Error')
make_error_snapshot(e)
make_error_snapshot(e)
return response