]> git.treefish.org Git - mtxbot.git/commitdiff
be more tolerant on fifo writing
authorAlexander Schmidt <alex@treefish.org>
Fri, 9 Oct 2020 07:18:33 +0000 (09:18 +0200)
committerAlexander Schmidt <alex@treefish.org>
Fri, 9 Oct 2020 07:18:33 +0000 (09:18 +0200)
src/mtxbot-post.py

index f7e536550ecc9432ced3f80b68b1ed9635b55485..d1f713f07bdd2cf2dbb788d3fbf60292b800741d 100755 (executable)
@@ -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: