Handle not found crashlog gracefully

This commit is contained in:
Florian Bruhin 2014-07-30 18:45:56 +02:00
parent d178c89a0e
commit 377706ec54

View File

@ -508,7 +508,7 @@ class Application(QApplication):
self._crashlogfile.close()
try:
os.remove(self._crashlogfile.name)
except PermissionError as e:
except (PermissionError, FileNotFoundError) as e:
log.destroy.warning("Could not remove crash log ({})!".format(e))
def _exception_hook(self, exctype, excvalue, tb):