Don't show error if no autosave session exists

This commit is contained in:
Florian Bruhin 2017-02-22 23:17:59 +01:00
parent c33544fbc9
commit cd2c547b6b

View File

@ -303,6 +303,9 @@ class SessionManager(QObject):
"""Delete the autosave session."""
try:
self.delete('_autosave')
except SessionNotFoundError:
# Exiting before the first load finished
pass
except SessionError as e:
log.sessions.error("Failed to delete autosave session: {}"
.format(e))