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

This commit is contained in:
sfigato 2019-01-29 10:22:04 +01:00 committed by blallo
parent fdb0977353
commit 7290ec6883
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -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__":