Cleaning the response fifo. Leave it behind if command fails.
This commit is contained in:
parent
fdb0977353
commit
7290ec6883
|
@ -182,6 +182,11 @@ def status_command(ctx: click.Context):
|
||||||
logger.warning("File not found: %s", e)
|
logger.warning("File not found: %s", e)
|
||||||
pass
|
pass
|
||||||
logger.info(resp)
|
logger.info(resp)
|
||||||
|
try:
|
||||||
|
os.remove(rfifo_path)
|
||||||
|
except OSError as e:
|
||||||
|
logger.warning("Failed removing response fifo %s: %s", rfifo_path, e)
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user