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

master
blallo 2019-01-29 10:22:04 +01:00 committed by blallo
parent fdb0977353
commit 7290ec6883
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
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__":