aflaag/pokemon-icat

Url rate limited suring setup_icons.py

schmuelio opened this issue · 2 comments

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.

never had this issue, i'll try to look into this thanks

although i can't really replicate your issue, based on what you told me, this should be a fix for the problem, let me know

3df5c59#diff-7e0dfd15d2da5456547872192294ce5988802cb857448fffc3c781eb8237544a