Comparison error

Backported from:
75ce6e71f3

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-28 03:33:49 +02:00 committed by Nicolas Sebrecht
parent f6935342c2
commit c7cb68ad7f
1 changed files with 1 additions and 1 deletions

View File

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