Test again

This commit is contained in:
Théophile Bastian 2022-04-17 18:38:15 +02:00
parent f54ef4a662
commit 1b3b854622

View file

@ -59,7 +59,7 @@ def fifo_hooks(payload, hook_name, hook_conf):
"""Fifo web handler -- write 1 to a unix fifo"""
try:
with open(hook_conf["fifo_path"], "w") as fifo:
fifo.write("1")
fifo.write("1\n")
print(f"Written to {hook_conf['fifo_path']}")
except FileNotFoundError:
return "No such fifo", 500