Skip to content

Commit

Permalink
Fix publisher handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell committed May 6, 2024
1 parent 6bb22dc commit 86cd278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ames/harvesters/caltechauthors.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_publisher(token, record, test=False, draft=True):
if draft:
url = url + "/draft"
response = requests.get(url, headers=headers)
return response.json()["metadata"]["publisher"]
return response.json()["metadata"].get("publisher")


def get_author_records(token, author_identifier, year=None, test=False):
Expand Down

0 comments on commit 86cd278

Please sign in to comment.