Skip to content

Re-raise error from urllib as ScryfallError and fix tests#157

Merged
NandaScott merged 2 commits intodevelopfrom
bugfix/properly-raise-scryfall-error
Apr 7, 2026
Merged

Re-raise error from urllib as ScryfallError and fix tests#157
NandaScott merged 2 commits intodevelopfrom
bugfix/properly-raise-scryfall-error

Conversation

@NandaScott
Copy link
Copy Markdown
Owner

Addresses issue #155

Description

This PR should fix a latent issue with ScryfallError not being raised. urllib will actually raise HTTPError on 4XX/5XX errors and that wasn't being properly handled. This was uncaught because the tests were not written correctly.

@NandaScott NandaScott merged commit 2fedbc4 into develop Apr 7, 2026
7 checks passed
@NandaScott NandaScott deleted the bugfix/properly-raise-scryfall-error branch April 7, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant