aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tls_passthrough.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tls_passthrough.py')
-rw-r--r--examples/tls_passthrough.py4
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: