diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-28 22:39:30 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-28 22:45:15 +0200 |
commit | 7971dce2231bc32c25b962d425d8ad935568a699 (patch) | |
tree | 094947e14d55fdf14dfb3bf2fab0eff76f7a1172 /mitmproxy/exceptions.py | |
parent | e4045dc7f858e1e7d2368819e7ad251f4e1d7f90 (diff) | |
download | mitmproxy-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.py | 4 |
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): """ |