aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy/primitives.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/proxy/primitives.py')
-rw-r--r--libmproxy/proxy/primitives.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/libmproxy/proxy/primitives.py b/libmproxy/proxy/primitives.py
index 691db922..6154749c 100644
--- a/libmproxy/proxy/primitives.py
+++ b/libmproxy/proxy/primitives.py
@@ -1,12 +1,10 @@
from __future__ import absolute_import
-class ProxyError(Exception):
- def __init__(self, code, msg, headers=None):
- self.code, self.msg, self.headers = code, msg, headers
-
- def __str__(self):
- return "ProxyError(%s, %s)" % (self.code, self.msg)
+class ProxyError(Exception):
+ def __init__(self, code, message, headers=None):
+ super(ProxyError, self).__init__(self, message)
+ self.code, self.headers = code, headers
class ConnectionTypeChange(Exception):
"""