global errorcode fix

This commit is contained in:
Bandie Canis 2017-12-27 13:40:17 +01:00
parent 03635184ae
commit f5aa131048
1 changed files with 3 additions and 2 deletions

View File

@ -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"):