Fixing no such file

pull/170/head
Sami Mokaddem 2018-01-15 17:10:03 +01:00
parent ec36f487b4
commit 9a66a6111b
1 changed files with 5 additions and 2 deletions

View File

@ -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