moving image opening to the retryer in hope that it could resolve rare occasions of UnidentifiedImageError popping up. Reported in https://github.com/networkx/networkx/issues/7301 and seen once in our CI (here). I wasn't able to reproduce the issue locally in any form so I am not sure if it will fix it but it is the only thing I could think of.
To get a better control of retries, we should also probably expose wait, max_retries, n_connections and use_cache on add_basemap level, not only in bounds2img but I'll do that separately.
3770fda just updates the expected values changed in the test tiles. same issue is on main, just fixing this to get green CI. irrelevant to the contents here.
moving image opening to the retryer in hope that it could resolve rare occasions of
UnidentifiedImageError
popping up. Reported in https://github.com/networkx/networkx/issues/7301 and seen once in our CI (here). I wasn't able to reproduce the issue locally in any form so I am not sure if it will fix it but it is the only thing I could think of.To get a better control of retries, we should also probably expose
wait
,max_retries
,n_connections
anduse_cache
onadd_basemap
level, not only inbounds2img
but I'll do that separately.