Skip to content

Commit 188c82b

Browse files
committed
Merge branch 'hotfix/2.4.3'
2 parents 234e714 + a7ed644 commit 188c82b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

share/harvest/oai.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import abc
2-
import time
32
import logging
3+
import time
44

55
import pendulum
66
from furl import furl
@@ -82,7 +82,7 @@ def fetch_page(self, url: furl, token: str=None) -> (list, str):
8282
continue
8383
resp.raise_for_status()
8484

85-
parsed = etree.fromstring(resp.content)
85+
parsed = etree.fromstring(resp.content, parser=etree.XMLParser(recover=True))
8686

8787
records = parsed.xpath('//ns0:record', namespaces=self.namespaces)
8888
token = (parsed.xpath('//ns0:resumptionToken/node()', namespaces=self.namespaces) + [None])[0]

0 commit comments

Comments
 (0)