From 20b161bf9008c265dd609d160868094ffa3c6cc8 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Mon, 1 Aug 2016 02:12:15 -0400 Subject: [PATCH] debug: print stracktrace when debugging --- webagg/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webagg/app.py b/webagg/app.py index 38177fa0..e045480b 100644 --- a/webagg/app.py +++ b/webagg/app.py @@ -82,6 +82,8 @@ class ResAggApp(object): return res except Exception as e: + if self.debug: + traceback.print_exc() message = 'Internal Error: ' + str(e) status = 500 return self.send_error({}, start_response,