From f1d6fd08d76983118f672cfe33db078ea9fa9cc8 Mon Sep 17 00:00:00 2001 From: Rushiraj Nenuji <19696935+rushirajnenuji@users.noreply.github.com> Date: Fri, 5 Mar 2021 07:10:11 -0800 Subject: [PATCH] retrieving the diagnostic element from the list retrieving the diagnostic element from the list of objects returned by Crossref --- impl/crossref.py | 1 + 1 file changed, 1 insertion(+) 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)