diff --git a/offlineimap/ui/UIBase.py b/offlineimap/ui/UIBase.py index a2188f8..5b1019e 100644 --- a/offlineimap/ui/UIBase.py +++ b/offlineimap/ui/UIBase.py @@ -200,7 +200,7 @@ class UIBase(): If no account has been registered with this thread, return 'None'.""" - if thr == None: + if thr is None: thr = threading.currentThread() if thr in self.threadaccounts: return self.threadaccounts[thr]