Skip to content

Commit

Permalink
fixup! 🚧(api) experience index runner
Browse files Browse the repository at this point in the history
  • Loading branch information
lebaudantoine committed Jan 13, 2024
1 parent 0f65ed0 commit f198a55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/api/core/warren/xi/indexers/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ async def run_indexer(args):
indexer = await indexer_factory.create(source, target, **vars(args))
logger.debug("Running indexer: %s", indexer)
await indexer.execute()
except (HTTPError, ValidationError, ValueError):
logger.exception("Runner has stopped")
except (HTTPError, ValidationError, ValueError) as err:
msg = "Runner has stopped"
logger.exception(msg)
raise RuntimeError(msg) from err

finally:
logger.debug("Closing clients session")
Expand Down

0 comments on commit f198a55

Please sign in to comment.