infrae / pyoai

The oaipmh module is a Python implementation of an "Open Archives$ Initiative Protocol for Metadata Harvesting"
http://pypi.python.org/pypi/pyoai
Other
83 stars 53 forks source link

on SyntaxError, log error and retry with parser option recover=True #38

Closed sdm7g closed 5 years ago

sdm7g commented 5 years ago

This change is working for me to fix #35 .

Or, would you prefer it if I moved the changes into another subClass of Client or added an option on init to turn recover retry on or off.

I am doing initial try without recover=True, because I want to log these errors to report them to the feed owner.

sdm7g commented 5 years ago

Withdrawing this. I'm discovering there is probably a better way to hook into lxml.etree error logging.