Open panta-123 opened 2 weeks ago
Thanks for the report; it's because your repo has no public records. I've created a PR https://github.com/caltechlibrary/iga/pull/41 which will fix the issue, but we probably won't be able to get a release out for a few weeks.
Ah got it. I tried it on dev server after doing wipe and recreate. Thank you for quick fix.
Description
When I run
iga -d -o <version>
, I get:This line: https://github.com/caltechlibrary/iga/blob/develop/iga/invenio.py#L130
It looks like data that my inveniordm server provides is:
data.get('hits', {}).get('hits')
is a list and is empty meaning the line : https://github.com/caltechlibrary/iga/blob/develop/iga/invenio.py#L130 gives an error.Solution idea:
On code bolck: https://github.com/caltechlibrary/iga/blob/develop/iga/invenio.py#L130-L135
Software environment
$ iga --version iga version 1.3.0 Authors: Michael Hucka URL: https://caltechlibrary.github.io/iga License: https://github.com/caltechlibrary/iga/blob/main/LICENSE