Catch all debug errors when killing debug server

This commit is contained in:
Ivan Kravets
2019-11-19 18:55:21 +02:00
parent f19c7dc575
commit 88ead0aed1

View File

@ -15,7 +15,6 @@
import os
from os.path import isdir, isfile, join
from twisted.internet import error # pylint: disable=import-error
from twisted.internet import reactor # pylint: disable=import-error
from platformio import exception, fs, util
@ -134,5 +133,5 @@ class DebugServer(BaseProcess):
return
try:
self._transport.signalProcess("KILL")
except (OSError, error.ProcessExitedAlready):
except: # pylint: disable=bare-except
pass