Skip to content

Fix exception handling on anitopy episode number parsing#844

Open
Neelo16 wants to merge 1 commit into
z411:masterfrom
Neelo16:fix-anitopy-episode-numbers
Open

Fix exception handling on anitopy episode number parsing#844
Neelo16 wants to merge 1 commit into
z411:masterfrom
Neelo16:fix-anitopy-episode-numbers

Conversation

@Neelo16

@Neelo16 Neelo16 commented May 11, 2026

Copy link
Copy Markdown
Contributor

This PR aims to close #843. I opted to use the same logic that is already being used in getEpisodeNumbers, which is using Decimal to parse the episode number, and then trying to convert that into an int, while also gracefully handling ArithmeticErrors. This fix is what I used for the "Expected Behavior" in the issue, so I can confirm that it works for at least my problematic example.

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.

Anitopy Parser crashes tracker on invalid episode number formats

1 participant