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.

pull/61/head
Christian T. Jacobs 2017-06-13 21:17:54 +01:00
rodzic a1d5640be3
commit db1c050b78
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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: