print error for kill

This commit is contained in:
mantaohuang 2020-04-03 16:14:56 -04:00
parent 80bb46dfe1
commit 8bdcb8bc4b

View File

@ -95,8 +95,8 @@ class Openvpn:
if self.status == RUNNING: if self.status == RUNNING:
try: try:
await self.proc.kill() await self.proc.kill()
except: except Exception as err:
print("kill failed") print("kill failed:", err)
self.status = IDLE self.status = IDLE
self.run_task.cancel() self.run_task.cancel()