From db1c050b782ab2f84181e88aae89320a0d99de01 Mon Sep 17 00:00:00 2001 From: "Christian T. Jacobs" Date: Tue, 13 Jun 2017 21:17:54 +0100 Subject: [PATCH] Fix new logbook functionality by changing "if(not self.logs)" to "if(self.logs is None)", since the case of an empty log list should be handled in the 'else' branch. --- pyqso/logbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqso/logbook.py b/pyqso/logbook.py index 6d75f49..14408a4 100644 --- a/pyqso/logbook.py +++ b/pyqso/logbook.py @@ -116,7 +116,7 @@ class Logbook: logging.debug("Retrieving all the logs in the logbook...") self.logs = self.get_logs() - if(not self.logs): + if(self.logs is None): error(parent=self.application.window, message="Could not open logbook. Something went wrong when trying to retrieve the logs. Perhaps the logbook file is encrypted, corrupted, or in the wrong format?") return else: