Skip to content

Commit b0dd3f5

Browse files
committed
Fix bug where server name wasn't used
1 parent eeb40db commit b0dd3f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iga/invenio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def invenio_token_valid(server_url):
104104
# programs (and especially ones that run as GHAs) we don't want to get far
105105
# into the work before discovering we won't be able to upload the result.
106106
try:
107-
return bool(_invenio('get', endpoint='/api/users?size=1',
107+
return bool(_invenio('get', url=f'{server_url}/api/users?size=1',
108108
msg='confirm InvenioRDM token is valid'))
109109
except KeyboardInterrupt:
110110
raise

0 commit comments

Comments
 (0)