global errorcode fix
This commit is contained in:
parent
03635184ae
commit
f5aa131048
@ -8,6 +8,9 @@ import configparser
|
||||
|
||||
CONFIG = "ding_client.cfg"
|
||||
|
||||
global exitcode
|
||||
exitcode = 1
|
||||
|
||||
def readConfig():
|
||||
cfg = configparser.SafeConfigParser()
|
||||
try:
|
||||
@ -28,8 +31,6 @@ def readConfig():
|
||||
|
||||
def send(conn, cmd):
|
||||
|
||||
global exitcode
|
||||
|
||||
conn.connect((host, port))
|
||||
buf = conn.recv(1024)
|
||||
if(buf == b"OK 1337\n"):
|
||||
|
Loading…
Reference in New Issue
Block a user