From d7ac0d67d1dd14958baaa76292c3e4cb5980b09a Mon Sep 17 00:00:00 2001 From: Adrian Vollmer Date: Wed, 30 May 2018 11:02:15 +0200 Subject: [PATCH] output error message in case RC4-SHA is not available; see #17 --- seth/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seth/main.py b/seth/main.py index 9067b2b..ba1b37c 100644 --- a/seth/main.py +++ b/seth/main.py @@ -131,7 +131,8 @@ def enableSSL(self): ) try: self.rsock = ssl.wrap_socket(self.rsock, ciphers="RC4-SHA") - except ssl.SSLError: + except ssl.SSLError as e: + print("Not using RC4-SHA because of SSL Error:", str(e)) self.rsock = ssl.wrap_socket(self.rsock, ciphers=None) except ConnectionResetError: print("Connection lost")