Attempting to run setup_icons.py during the install process tends to get rate limited and fail after ~400-500 downloads.
Initial fix was adding:
if exists(f"{home}/.pokemon-icat/pokemon-icons/{pokemon}.png"):
print(f"{pokemon} exists already")
continue
to main loop and running multiple times was a workaround, but a better workaround would likely involve a try/catch around requests.get(url) and sleeping for a little if it fails.
Attempting to run setup_icons.py during the install process tends to get rate limited and fail after ~400-500 downloads.
Initial fix was adding:
to main loop and running multiple times was a workaround, but a better workaround would likely involve a try/catch around
requests.get(url)
and sleeping for a little if it fails.