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