diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2015-09-17 02:13:28 +0200 |
|---|---|---|
| committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-17 02:13:28 +0200 |
| commit | 14a5f405fdf3973f05ca11182e927d145d10d8d6 (patch) | |
| tree | 2843010882d64d928c0f53edffa9f8d48cee6da0 /examples | |
| parent | 8fbed971ae4a84e875f1072805b17cc7ada39fad (diff) | |
| download | mitmproxy-14a5f405fdf3973f05ca11182e927d145d10d8d6.tar.gz mitmproxy-14a5f405fdf3973f05ca11182e927d145d10d8d6.tar.bz2 mitmproxy-14a5f405fdf3973f05ca11182e927d145d10d8d6.zip | |
use new netlib exceptions
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/tls_passthrough.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tls_passthrough.py b/examples/tls_passthrough.py index 7b4dec62..0d41b725 100644 --- a/examples/tls_passthrough.py +++ b/examples/tls_passthrough.py @@ -26,7 +26,7 @@ import random from enum import Enum -from libmproxy.exceptions import TlsException +from libmproxy.exceptions import TlsProtocolException from libmproxy.protocol import TlsLayer, RawTCPLayer @@ -98,7 +98,7 @@ class TlsFeedback(TlsLayer): try: super(TlsFeedback, self)._establish_tls_with_client() - except TlsException as e: + except TlsProtocolException as e: tls_strategy.record_failure(server_address) raise e else: |
