Explicitely set TLS options to None when server config is not valid

This commit is contained in:
Alberto Sottile 2019-02-16 11:55:03 +01:00
parent 0f10161d86
commit e16775c33b

View File

@ -223,6 +223,7 @@ class SyncFactory(Factory):
raiseMinimumTo=ssl.TLSVersion.TLSv1_2)
self.options = contextFactory
except Exception as e:
self.options = None
print(e)
print("TLS support is not enabled.")