fix variable name

This commit is contained in:
j 2019-07-23 16:09:07 +02:00
parent 8c14d28aa2
commit fb8b33d916

View file

@ -201,7 +201,7 @@ class API(object):
return False
if data['status']['code'] != 200:
print("request returned error, will try again in 5 seconds")
if DEBUG:
if self.DEBUG:
print(data)
time.sleep(5)
if data and data.get('result') == 1: