Skip to content

Commit

Permalink
retrieving the diagnostic element from the list
Browse files Browse the repository at this point in the history
retrieving the diagnostic element from the list of objects returned by Crossref
  • Loading branch information
rushirajnenuji committed Mar 5, 2021
1 parent 81ce02d commit f1d6fd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions impl/crossref.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ def _pollDepositStatus (batchId, doi):
else:
assert len(d) == 1, ("<doi_batch_diagnostic> element contains %s " +\
"<record_diagnostic> element") % _notOne(len(d))
d = d[0]
assert "status" in d.attrib, "missing record_diagnostic/status attribute"
if d.attrib["status"] == "Success":
return ("completed successfully", None)
Expand Down

0 comments on commit f1d6fd0

Please sign in to comment.