X-Git-Url: http://git.treefish.org/~alex/mtxbot.git/blobdiff_plain/c4b302f9d8c02035bc4f45458a33bb9e9ba26935..903c99697d1bdf1db334a9da7c19213215e205f5:/src/mtxbot-post.py diff --git a/src/mtxbot-post.py b/src/mtxbot-post.py index 3673eda..61cbdf2 100755 --- a/src/mtxbot-post.py +++ b/src/mtxbot-post.py @@ -20,7 +20,7 @@ if not os.path.isdir(fifo_dir): print("Fifo directory %s does not exist!" % fifo_dir, file=sys.stderr) sys.exit(2) -if not stat.S_ISFIFO( os.stat(fifo_path).st_mode ): +if not ( os.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)