one more fix

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
Churikova Tetiana 2020-10-07 18:22:27 +02:00 committed by andrey
parent 9f36bd44b2
commit 2e7c377343
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ class NetworkApi(object):
for i in range(5):
try:
return int(requests.request('GET', method, headers=self.headers).json()["result"])
except ValueError:
except JSONDecodeError as e:
self.log(str(e))
time.sleep(5)
pass