Fixing no such file

This commit is contained in:
Sami Mokaddem 2018-01-15 17:10:03 +01:00
parent ec36f487b4
commit 9a66a6111b

View file

@ -61,5 +61,8 @@ while True:
continue continue
socket.send("%d %s" % (topic, paste)) socket.send("%d %s" % (topic, paste))
topic = 102 topic = 102
messagedata = open(pystemonpath+paste).read() try:
socket.send("%d %s %s" % (topic, paste, base64.b64encode(messagedata))) messagedata = open(pystemonpath+paste).read()
socket.send("%d %s %s" % (topic, paste, base64.b64encode(messagedata)))
except IOError as e:
continue