Skip to content

Commit

Permalink
convert to json
Browse files Browse the repository at this point in the history
  • Loading branch information
BinamB committed Dec 5, 2024
1 parent 6a47f30 commit 25d5709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@ def get_record_with_retry(guid, max_retries=5, base_delay=1, backoff_factor=2):
for row in csv_reader:
try:
record = get_record_with_retry(row["id"])
result[row["id"]] = record["urls"]
record_json = record.to_json()
result[row["id"]] = record_json["urls"]
except Exception as e:
logger.error(f"Could not find record {row['id']}. Errored with {e}")
errored_list.append(row["id"])
Expand Down

0 comments on commit 25d5709

Please sign in to comment.