You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if response := network('get', server_url + endpoint):
log(f'we can reach {server_url} and it responds to {endpoint}')
data = response.json()
record = data.get('hits', {}).get('hits', [])
if record:
if publisher := record[0].get('metadata', {}).get('publisher'):
return publisher
else:
return server_host
Thanks for the report; it's because your repo has no public records. I've created a PR #41 which will fix the issue, but we probably won't be able to get a release out for a few weeks.
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
The text was updated successfully, but these errors were encountered: