Skip to content

Commit

Permalink
Add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachin-Bhat committed Jul 16, 2024
1 parent 33c49d4 commit cecf13e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kor/extraction/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
def set_verbose_context(verbose: bool):
old_verbose = get_verbose()
set_verbose(verbose)
yield
set_verbose(old_verbose)
try:
yield
finally:
set_verbose(old_verbose)


async def _extract_from_document_with_semaphore(
Expand Down

0 comments on commit cecf13e

Please sign in to comment.