Pubmed retmodes (text/xml) are not aligned with allowed retmodes in analyzer (xml/json) causing errors
Scenario:
Some search returning a list of Id's ino "a"
...
analyzer = ef.inquire({'db' : 'pubmed',
'retmode' : 'text',
'id' : a.get_result().uids,
'rettype' : 'json'})
Using default analyzer class
Causes sys.exit on : ~/Library/Python/3.9/lib/python/site-packages/entrezpy/base/analyzer.py in isErrorResponse(self, response, request) 159 if request.retmode == 'json': 160 hasErrorResponse = self.check_error_json(response) --> 161 return hasErrorResponse 162 163 def check_error_xml(self, response):
efetch alows only text or xml retmode but the analyzer only checks for xml or json... causes use before declaration error.