fix ProxyError inheritance

This commit is contained in:
Maximilian Hils 2014-06-25 23:25:49 +02:00
parent 84a016dccf
commit c039e4a2e3

View File

@ -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)
def __init__(self, code, message, headers=None):
super(ProxyError, self).__init__(self, message)
self.code, self.headers = code, headers
class ConnectionTypeChange(Exception):
"""