aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/exceptions.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-10 20:44:36 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-10 20:44:36 +0200
commitff27d65f08d00c312a162965c5b1db711aa8f6ed (patch)
tree2098e479125bec21c518955907d996a88c6028f7 /netlib/http/exceptions.py
parent476badf45cd085d69b6162cd48983e3cd22cefcc (diff)
downloadmitmproxy-ff27d65f08d00c312a162965c5b1db711aa8f6ed.tar.gz
mitmproxy-ff27d65f08d00c312a162965c5b1db711aa8f6ed.tar.bz2
mitmproxy-ff27d65f08d00c312a162965c5b1db711aa8f6ed.zip
cleanup whitespace
Diffstat (limited to 'netlib/http/exceptions.py')
-rw-r--r--netlib/http/exceptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/netlib/http/exceptions.py b/netlib/http/exceptions.py
index 7cd26c12..987a7908 100644
--- a/netlib/http/exceptions.py
+++ b/netlib/http/exceptions.py
@@ -1,6 +1,8 @@
from netlib import odict
+
class HttpError(Exception):
+
def __init__(self, code, message):
super(HttpError, self).__init__(message)
self.code = code
@@ -11,6 +13,7 @@ class HttpErrorConnClosed(HttpError):
class HttpAuthenticationError(Exception):
+
def __init__(self, auth_headers=None):
super(HttpAuthenticationError, self).__init__(
"Proxy Authentication Required"