fixed network retry

This commit is contained in:
aj 2019-03-24 22:59:06 +00:00
parent 7d23f6302d
commit bab55bdb55

View File

@ -27,7 +27,7 @@ class User:
if req.json()['error'] == 8: if req.json()['error'] == 8:
print('ERROR: retrying call ' + method) print('ERROR: retrying call ' + method)
return __makeRequest(method, extra, page) return self.__makeRequest(method, extra, page)
else: else:
raise ValueError('HTTP Error Raised: ' + str(req.json()['error']) + ' ' + req.json()['message']) raise ValueError('HTTP Error Raised: ' + str(req.json()['error']) + ' ' + req.json()['message'])