Allow batches to fail silently
This commit is contained in:
parent
ddc8664c11
commit
6ea3a95684
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue