kopia lustrzana https://github.com/ctjacobs/pyqso
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.
rodzic
a1d5640be3
commit
db1c050b78
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue