diff --git a/syncplay/server.py b/syncplay/server.py index c8c2c7b..6b5d737 100755 --- a/syncplay/server.py +++ b/syncplay/server.py @@ -230,7 +230,7 @@ class SyncFactory(Factory): contextFactory = ssl.CertificateOptions(privateKey=privKeyPySSL, certificate=certifPySSL, extraCertChain=chainPySSL, acceptableCiphers=accCiphers, raiseMinimumTo=ssl.TLSVersion.TLSv1_2) - except: + except AttributeError: contextFactory = ssl.CertificateOptions(privateKey=privKeyPySSL, certificate=certifPySSL, extraCertChain=chainPySSL, acceptableCiphers=accCiphers, method=TLSv1_2_METHOD)