diff --git a/offlineimap/folder/LocalStatus.py b/offlineimap/folder/LocalStatus.py index 8ba5bb8..4bb83ee 100644 --- a/offlineimap/folder/LocalStatus.py +++ b/offlineimap/folder/LocalStatus.py @@ -67,7 +67,7 @@ class LocalStatusFolder(BaseFolder): file = open(self.filename, "rt") self.messagelist = {} line = file.readline().strip() - if not line and not line.read() + if not line and not line.read(): # The status file is empty - should not have happened, # but somehow did. file.close()