Cleaning the response fifo. Leave it behind if command fails.

Leonardo Barcaroli 2019-01-29 10:22:04 +01:00
parent 7e97a837c5
commit a12498f479
1 changed files with 5 additions and 0 deletions

View File

@ -182,6 +182,11 @@ def status_command(ctx: click.Context):
logger.warning("File not found: %s", e)
pass
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__":