Skip to content

Commit d2c5bf1

Browse files
Fix lint too many return statements
1 parent 756479b commit d2c5bf1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

seam/client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,9 @@ def _is_api_error_response(self, response: requests.Response) -> bool:
8888
"application/json"
8989
):
9090
return False
91-
except ValueError:
92-
return False
9391

94-
try:
9592
data = response.json()
96-
except requests.exceptions.JSONDecodeError:
93+
except (ValueError, requests.exceptions.JSONDecodeError):
9794
return False
9895

9996
if not isinstance(data, dict):

0 commit comments

Comments
 (0)