diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index 5f50a18..d384664 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -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.")