aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/exceptions.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-05-28 22:39:30 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-05-28 22:45:15 +0200
commit7971dce2231bc32c25b962d425d8ad935568a699 (patch)
tree094947e14d55fdf14dfb3bf2fab0eff76f7a1172 /mitmproxy/exceptions.py
parente4045dc7f858e1e7d2368819e7ad251f4e1d7f90 (diff)
downloadmitmproxy-7971dce2231bc32c25b962d425d8ad935568a699.tar.gz
mitmproxy-7971dce2231bc32c25b962d425d8ad935568a699.tar.bz2
mitmproxy-7971dce2231bc32c25b962d425d8ad935568a699.zip
mitmproxy: fix most flake8 offenses
Diffstat (limited to 'mitmproxy/exceptions.py')
-rw-r--r--mitmproxy/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mitmproxy/exceptions.py b/mitmproxy/exceptions.py
index 8f989063..7e3e6d86 100644
--- a/mitmproxy/exceptions.py
+++ b/mitmproxy/exceptions.py
@@ -13,6 +13,7 @@ import sys
class ProxyException(Exception):
+
"""
Base class for all exceptions thrown by mitmproxy.
"""
@@ -22,6 +23,7 @@ class ProxyException(Exception):
class Kill(ProxyException):
+
"""
Signal that both client and server connection(s) should be killed immediately.
"""
@@ -37,6 +39,7 @@ class TlsProtocolException(ProtocolException):
class ClientHandshakeException(TlsProtocolException):
+
def __init__(self, message, server):
super(ClientHandshakeException, self).__init__(message)
self.server = server
@@ -67,6 +70,7 @@ class ReplayException(ProxyException):
class ScriptException(ProxyException):
+
@classmethod
def from_exception_context(cls, cut_tb=1):
"""