Skip to content

Commit

Permalink
chore: silenced an error related to uncatched generator early exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Guibod committed Feb 25, 2023
1 parent c552af1 commit 781dc0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mightstone/services/mtgjson/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,8 @@ async def _iterate_raw(
for i, v in enumerate(l, start=1):
yield (k, i), v
logger.debug("Done %s", path)
except GeneratorExit:
return
except HTTPStatusError as e:
raise ServiceError(
message="Failed to fetch data from Mtg JSON",
Expand Down

0 comments on commit 781dc0e

Please sign in to comment.