Make catching the SSL exception due to old Twisted version more specific.
This commit is contained in:
parent
30c8cbbc08
commit
75416463a6
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user