Handle not found crashlog gracefully
This commit is contained in:
parent
d178c89a0e
commit
377706ec54
@ -508,7 +508,7 @@ class Application(QApplication):
|
|||||||
self._crashlogfile.close()
|
self._crashlogfile.close()
|
||||||
try:
|
try:
|
||||||
os.remove(self._crashlogfile.name)
|
os.remove(self._crashlogfile.name)
|
||||||
except PermissionError as e:
|
except (PermissionError, FileNotFoundError) as e:
|
||||||
log.destroy.warning("Could not remove crash log ({})!".format(e))
|
log.destroy.warning("Could not remove crash log ({})!".format(e))
|
||||||
|
|
||||||
def _exception_hook(self, exctype, excvalue, tb):
|
def _exception_hook(self, exctype, excvalue, tb):
|
||||||
|
Loading…
Reference in New Issue
Block a user