Skip to content

Commit b361927

Browse files
authored
Merge pull request #1024 from agios/hotfix
Fix TypeError
2 parents dc451e2 + 8f29f72 commit b361927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/psk-frontend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def new_client(self, s1):
6969
self.sessions.append((ssl_sock, s2))
7070
except ssl.SSLError as e:
7171
print("could not establish sslpsk socket:", e)
72-
if "NO_SHARED_CIPHER" in e.reason or "WRONG_VERSION_NUMBER" in e.reason or "WRONG_SSL_VERSION" in e.reason:
72+
if e and ("NO_SHARED_CIPHER" in e.reason or "WRONG_VERSION_NUMBER" in e.reason or "WRONG_SSL_VERSION" in e.reason):
7373
print("don't panic this is probably just your phone!")
7474
except Exception as e:
7575
print(e)

0 commit comments

Comments
 (0)