diff --git a/crawlers/mooncrawl/mooncrawl/moonworm_crawler/continuous_crawler.py b/crawlers/mooncrawl/mooncrawl/moonworm_crawler/continuous_crawler.py index fd99c93e..85eeade5 100644 --- a/crawlers/mooncrawl/mooncrawl/moonworm_crawler/continuous_crawler.py +++ b/crawlers/mooncrawl/mooncrawl/moonworm_crawler/continuous_crawler.py @@ -252,6 +252,7 @@ def continuous_crawler( start_block = end_block + 1 failed_count = 0 except Exception as e: + db_session.rollback() logger.error(f"Internal error: {e}") logger.exception(e) failed_count += 1