From 9a66a6111bb2ca482cf5f5ab0f51aba13c5378cf Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 15 Jan 2018 17:10:03 +0100 Subject: [PATCH] Fixing no such file --- bin/feeder/pystemon-feeder.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/feeder/pystemon-feeder.py b/bin/feeder/pystemon-feeder.py index 770655bc..d8dbc216 100755 --- a/bin/feeder/pystemon-feeder.py +++ b/bin/feeder/pystemon-feeder.py @@ -61,5 +61,8 @@ while True: continue socket.send("%d %s" % (topic, paste)) topic = 102 - messagedata = open(pystemonpath+paste).read() - socket.send("%d %s %s" % (topic, paste, base64.b64encode(messagedata))) + try: + messagedata = open(pystemonpath+paste).read() + socket.send("%d %s %s" % (topic, paste, base64.b64encode(messagedata))) + except IOError as e: + continue