[core] stats: do not break on stats errors

Watching the subprocess for statistics may create errors on windows on specific cases, it should not break the UI.
This commit is contained in:
Fabien Castan 2020-03-17 19:52:07 +01:00
parent 6115a81044
commit 8e141d7e58

View file

@ -303,7 +303,7 @@ class StatisticsThread(threading.Thread):
if self.proc.is_running():
self.updateStats()
return
except (KeyboardInterrupt, SystemError, GeneratorExit):
except (KeyboardInterrupt, SystemError, GeneratorExit, psutil.NoSuchProcess):
pass
def stopRequest(self):