File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ import os
5
5
import sys
6
6
import subprocess
7
7
import zmq
8
- try :
9
- import configparser
10
- except ImportError :
11
- import configparser as ConfigParser
8
+ import configparser
12
9
import logging
13
10
14
11
import threebot_crypto
@@ -210,13 +207,13 @@ class WorkerDeamon(Daemon):
210
207
211
208
def run (self ):
212
209
logging .info ("Starting the 3bot worker listening on %s:%s" % (BOT , PORT ))
213
-
214
210
context = zmq .Context (1 )
215
211
server = context .socket (zmq .REP )
216
212
server .bind ("%s://%s:%s" % (PROTOCOL , BOT , PORT ))
217
213
218
214
while True :
219
215
request = server .recv (FLAGS )
216
+ print (request )
220
217
request = threebot_crypto .decrypt (request , SECRET_KEY )
221
218
logging .info ("Received request" )
222
219
if request :
You can’t perform that action at this time.
0 commit comments