Skip to content

Update ia.py to fix the undefined IA base url#8610

Merged
mekarpeles merged 3 commits intointernetarchive:masterfrom
krishnapatel17:fix-undefined-ia-base-url
Feb 26, 2026
Merged

Update ia.py to fix the undefined IA base url#8610
mekarpeles merged 3 commits intointernetarchive:masterfrom
krishnapatel17:fix-undefined-ia-base-url

Conversation

@krishnapatel17
Copy link
Copy Markdown
Contributor

@krishnapatel17 krishnapatel17 commented Dec 10, 2023

Closes #4437

Fixes IA_BASE_URL not being read from openlibrary.yml

Technical

This change modifies the implementation for referencing config to read the IA_BASE_URL by adding a setup method.

Testing

Screenshot

Stakeholders

@krishnapatel17 krishnapatel17 changed the title Update ia.py to fix the bug of undefined IA base url Update ia.py to fix the undefined IA base url Dec 10, 2023
@RayBB RayBB added the Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed] label Mar 14, 2024
@mekarpeles mekarpeles assigned mekarpeles and unassigned scottbarnes Apr 15, 2024
@mekarpeles mekarpeles added Needs: Testing and removed Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed] labels Apr 15, 2024
@mekarpeles
Copy link
Copy Markdown
Member

mekarpeles commented Apr 15, 2024

Some scripts may not call setup and we need there to be some default. Maybe the thing to do is set the default as a global and then override either in setup or whatever other location is accessible e.g. core.lending

https://github.com/internetarchive/openlibrary/blob/master/openlibrary/core/lending.py

@mekarpeles mekarpeles merged commit 94cb3f2 into internetarchive:master Feb 26, 2026
4 checks passed
bhardwajparth51 pushed a commit to bhardwajparth51/openlibrary that referenced this pull request Mar 3, 2026
* Update ia.py to fix the bug of undefined IA base url; default to archive.org

---------

Co-authored-by: Mek <michael.karpeles@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix IA_BASE_URL not being read from openlibrary.yml

4 participants