mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 08:04:49 +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
|
||||
|
||||
except Exception as e:
|
||||
if self.debug:
|
||||
traceback.print_exc()
|
||||
message = 'Internal Error: ' + str(e)
|
||||
status = 500
|
||||
return self.send_error({}, start_response,
|
||||
|
Loading…
x
Reference in New Issue
Block a user