فهرست منبع

Allow batches to fail silently

Daoud Clarke 3 سال پیش
والد
کامیت
6ea3a95684
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      mwmbl/indexer/retrieve.py

+ 1 - 1
mwmbl/indexer/retrieve.py

@@ -46,7 +46,7 @@ def retrieve_batch(url):
         batch = HashedBatch.parse_obj(data)
     except ValidationError:
         print("Failed to validate batch", data)
-        raise
+        return 0
     if len(batch.items) > 0:
         print(f"Retrieved batch with {len(batch.items)} items")
         create_historical_batch(batch)