From 2e7c3773436fb95271435518393ce2e1eb646332 Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Wed, 7 Oct 2020 18:22:27 +0200 Subject: [PATCH] one more fix Signed-off-by: andrey --- test/appium/support/api/network_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/appium/support/api/network_api.py b/test/appium/support/api/network_api.py index aaa80af4dc..13a6e15640 100644 --- a/test/appium/support/api/network_api.py +++ b/test/appium/support/api/network_api.py @@ -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