From 74c726d5fa144bc2ef3e30e3934866ba852f308e Mon Sep 17 00:00:00 2001 From: raggadhub <46328562+raggadhub@users.noreply.github.com> Date: Wed, 9 Jan 2019 13:15:58 +0100 Subject: [PATCH] fix path_to_send path Hi, Missing slash between pastes_directory and paste in path_to_send = pastes_directory+paste path error example: /opt/AIL-framework/PASTESarchive/pastebin.com_pro/2019/01/07/cAgqsY2U.gz --- bin/feeder/pystemon-feeder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/feeder/pystemon-feeder.py b/bin/feeder/pystemon-feeder.py index 280849ba..5c9f743c 100755 --- a/bin/feeder/pystemon-feeder.py +++ b/bin/feeder/pystemon-feeder.py @@ -67,7 +67,7 @@ while True: print(paste) with open(pystemonpath+paste, 'rb') as f: #.read() messagedata = f.read() - path_to_send = pastes_directory+paste + path_to_send = os.path.join(pastes_directory,paste) s = b' '.join( [ topic.encode(), path_to_send.encode(), base64.b64encode(messagedata) ] ) socket.send(s)