add requests to requrements, improve error logging
This commit is contained in:
parent
6924eb75bf
commit
3a89c84eaf
|
@ -946,7 +946,10 @@ class HTTPHandler(ProtocolHandler, TemporaryServerChangeMixin):
|
|||
if code:
|
||||
err = "%s: %s" % (code, message)
|
||||
else:
|
||||
err = error.__class__
|
||||
try:
|
||||
err = str(error)
|
||||
except:
|
||||
err = error.__class__
|
||||
|
||||
self.c.log("error: %s" % err, level="info")
|
||||
|
||||
|
|
Loading…
Reference in New Issue