diff --git a/impl/crossref.py b/impl/crossref.py index 7424b8e0f..ff6e28fe1 100644 --- a/impl/crossref.py +++ b/impl/crossref.py @@ -409,6 +409,7 @@ def _pollDepositStatus (batchId, doi): else: assert len(d) == 1, (" element contains %s " +\ " 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)