print error for kill

This commit is contained in:
mantaohuang
2020-04-03 16:14:56 -04:00
parent 80bb46dfe1
commit 8bdcb8bc4b
+2 -2
View File
@@ -95,8 +95,8 @@ class Openvpn:
if self.status == RUNNING:
try:
await self.proc.kill()
except:
print("kill failed")
except Exception as err:
print("kill failed:", err)
self.status = IDLE
self.run_task.cancel()