mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
one more fix
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
9f36bd44b2
commit
2e7c377343
@ -55,7 +55,8 @@ class NetworkApi(object):
|
|||||||
for i in range(5):
|
for i in range(5):
|
||||||
try:
|
try:
|
||||||
return int(requests.request('GET', method, headers=self.headers).json()["result"])
|
return int(requests.request('GET', method, headers=self.headers).json()["result"])
|
||||||
except ValueError:
|
except JSONDecodeError as e:
|
||||||
|
self.log(str(e))
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user