diff options
Diffstat (limited to 'libmproxy/protocol')
-rw-r--r-- | libmproxy/protocol/http.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index a1be6a17..bd850967 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -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") |