This commit is contained in:
Devaev Maxim 2019-04-11 20:59:49 +03:00
parent a168ce9d8f
commit c5c189c708

View File

@ -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")