Post #4231926
2026-07-30 07:33 UTC
Fixed some more 500 errors on Theriodex and I thiiiinkkk that at least the English version of it should not throw any 500s anymore anywhere at least for the regular Pokémon and move information pages.
The latest error was that for some Pokémon moves it did not have data for every single version of a particular generation. But because I had a loop that looped through every name in a version and got the data for that version from my move information… well if there was no version with that name in the data, it was just nil and my loop just threw me a NoMethodError.
My fix for now was just using &.each rather than .each (so that its nil safe). Was the simplest / fastest solution for now haha
Replies (0)
No replies.