Skip to content

Commit

Permalink
Merge return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
arenekosreal committed Sep 20, 2024
1 parent 2239733 commit 5a98665
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/crx_repo/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ async def _check_update(
params=params,
proxy=self.proxy,
) as response:

try:
text = await response.text()
except ClientError as e:
Expand All @@ -150,7 +149,7 @@ async def _check_update(
"Failed to send update check request, it returns `%s`",
text
)
if text is None:
if text is None or response.status != HTTPStatus.OK:
return None

element = fromstring(text)
Expand Down

0 comments on commit 5a98665

Please sign in to comment.