Skip to content

Commit

Permalink
Fix file not closed when resolve_links cannot be parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
loichuder committed Aug 26, 2024
1 parent 7ffbcf5 commit 0f31eb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions h5grove/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def get_content_from_file(
fallback=LinkResolution.ONLY_VALID,
)
except QueryArgumentError as e:
f.close()
raise create_error(422, str(e))

try:
Expand Down

0 comments on commit 0f31eb2

Please sign in to comment.