mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
nocovers
This commit is contained in:
parent
a168ce9d8f
commit
c5c189c708
@ -60,7 +60,7 @@ def main(argv: Optional[List[str]]=None) -> None:
|
|||||||
subprocess.check_output(["killall", streamer], stderr=subprocess.STDOUT)
|
subprocess.check_output(["killall", streamer], stderr=subprocess.STDOUT)
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
subprocess.check_output(["killall", "-9", streamer], stderr=subprocess.STDOUT)
|
subprocess.check_output(["killall", "-9", streamer], stderr=subprocess.STDOUT)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError: # pragma: nocover
|
||||||
pass
|
pass
|
||||||
|
|
||||||
for (owner, unix_path) in [
|
for (owner, unix_path) in [
|
||||||
@ -71,7 +71,7 @@ def main(argv: Optional[List[str]]=None) -> None:
|
|||||||
logger.info("Removing %s socket %r ...", owner, unix_path)
|
logger.info("Removing %s socket %r ...", owner, unix_path)
|
||||||
try:
|
try:
|
||||||
os.remove(unix_path)
|
os.remove(unix_path)
|
||||||
except Exception:
|
except Exception: # pragma: nocover
|
||||||
logger.exception("Can't remove %s socket %r", owner, unix_path)
|
logger.exception("Can't remove %s socket %r", owner, unix_path)
|
||||||
|
|
||||||
logger.info("Bye-bye")
|
logger.info("Bye-bye")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user