From 75416463a605d8fe0959badd940643cb40c0214d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wr=C3=B3bel?= Date: Sun, 24 Feb 2019 17:50:15 +0100 Subject: [PATCH] Make catching the SSL exception due to old Twisted version more specific. --- syncplay/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)