Skip to content

Commit

Permalink
Update item.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasExorde authored Oct 16, 2023
1 parent d515ecd commit dac9fcd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion exorde/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,15 @@ async def consumer(
yield item
else:
continue
except GeneratorExit:

except GeneratorExit:
raise
except TimeoutError:
raise GeneratorExit
except StopAsyncIteration:
logging.info(f"End of iterator {module.__name__} - StopAsyncIteration")
except asyncio.TimeoutError:
logging.info(f"End of iterator {module.__name__} - TimeoutError")
except Exception as e:
traceback_list = traceback.format_exception(
type(e), e, e.__traceback__
Expand Down

0 comments on commit dac9fcd

Please sign in to comment.