Skip to content

Commit 16b67f4

Browse files
committed
Temp workaround for odd records
1 parent b095776 commit 16b67f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

caltechdata_api/decustomize_schema.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def decustomize_schema(
3030
}
3131
del json_record["doi"]
3232
#Fail out if a DOI is not present
33-
else:
34-
raise ValueError(f'Error: Record does not have a DOI {json_record}')
33+
#else:
34+
# raise ValueError(f'Error: Record does not have a DOI {json_record}')
3535

3636
# Extract title
3737
if "title" in json_record:
@@ -161,8 +161,8 @@ def decustomize_schema(
161161

162162
del json_record["publicationDate"]
163163

164-
else:
165-
print("No publication date set - something is odd with the record ", doi)
164+
#else:
165+
# print("No publication date set - something is odd with the record ", doi)
166166

167167
# license - no url available
168168
if "rightsList" not in json_record:

0 commit comments

Comments
 (0)