From 53c312249e4237a9c7d9baad3d3922a3adec0c41 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Fri, 9 Oct 2020 09:18:33 +0200 Subject: [PATCH 1/1] be more tolerant on fifo writing --- src/mtxbot-post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mtxbot-post.py b/src/mtxbot-post.py index f7e5365..d1f713f 100755 --- a/src/mtxbot-post.py +++ b/src/mtxbot-post.py @@ -24,7 +24,7 @@ def send_line(line): posix.write(fifo, line) return except OSError as e: - if e.errno == errno.ENXIO: + if e.errno == errno.ENXIO or e.errno == errno.EAGAIN: time.sleep(1.0) finally: if fifo != -1: -- 2.39.5