Skip to content

Commit

Permalink
output error message in case RC4-SHA is not available; see #17
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianVollmer committed May 30, 2018
1 parent 59d36c3 commit d7ac0d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion seth/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d7ac0d6

Please sign in to comment.