From 68e819a04d93ac687e72ec02cc24f8b78bebb055 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Sat, 3 Oct 2020 22:21:48 +0200 Subject: [PATCH] fix fifo check --- src/mtxbot-post.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mtxbot-post.py b/src/mtxbot-post.py index 61cbdf2..8d1fac8 100755 --- a/src/mtxbot-post.py +++ b/src/mtxbot-post.py @@ -20,7 +20,8 @@ if not os.path.isdir(fifo_dir): print("Fifo directory %s does not exist!" % fifo_dir, file=sys.stderr) sys.exit(2) -if not ( os.exists(fifo_path) and stat.S_ISFIFO(os.stat(fifo_path).st_mode) ): +if not ( os.path.exists(fifo_path) and + stat.S_ISFIFO(os.stat(fifo_path).st_mode) ): print("Channel %s does not exist!" % sys.argv[1], file=sys.stderr) sys.exit(3) -- 2.39.5