Comparison error

This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-28 03:33:49 +02:00
parent 6ec6111896
commit 75ce6e71f3

View File

@ -102,7 +102,7 @@ class IMAPServer(object):
self.starttls = repos.getstarttls() self.starttls = repos.getstarttls()
if self.usessl \ if self.usessl \
and self.tlslevel is not "tls_compat" \ and self.tlslevel != "tls_compat" \
and self.sslversion is None: and self.sslversion is None:
raise Exception("When 'tls_level' is not 'tls_compat' " raise Exception("When 'tls_level' is not 'tls_compat' "
"the 'ssl_version' must be set explicitly.") "the 'ssl_version' must be set explicitly.")