mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
debug: print stracktrace when debugging
This commit is contained in:
parent
db3b92e228
commit
20b161bf90
@ -82,6 +82,8 @@ class ResAggApp(object):
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
if self.debug:
|
||||||
|
traceback.print_exc()
|
||||||
message = 'Internal Error: ' + str(e)
|
message = 'Internal Error: ' + str(e)
|
||||||
status = 500
|
status = 500
|
||||||
return self.send_error({}, start_response,
|
return self.send_error({}, start_response,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user