Skip to content

Commit 67c350e

Browse files
.
1 parent 9fe01d3 commit 67c350e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

threebot_worker/threebot-worker

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import os
55
import sys
66
import subprocess
77
import zmq
8-
try:
9-
import configparser
10-
except ImportError:
11-
import configparser as ConfigParser
8+
import configparser
129
import logging
1310

1411
import threebot_crypto
@@ -210,13 +207,13 @@ class WorkerDeamon(Daemon):
210207

211208
def run(self):
212209
logging.info("Starting the 3bot worker listening on %s:%s" % (BOT, PORT))
213-
214210
context = zmq.Context(1)
215211
server = context.socket(zmq.REP)
216212
server.bind("%s://%s:%s" % (PROTOCOL, BOT, PORT))
217213

218214
while True:
219215
request = server.recv(FLAGS)
216+
print (request)
220217
request = threebot_crypto.decrypt(request, SECRET_KEY)
221218
logging.info("Received request")
222219
if request:

0 commit comments

Comments
 (0)