X-Git-Url: https://www.yuggoth.org/gitweb?p=weather.git;a=blobdiff_plain;f=weather.py;fp=weather.py;h=71cf0ecca3a891a82b40a39484530a0261ba1c32;hp=1dfa081ed094bda926e42ba4aede793dd43e7f3f;hb=28a5c0e1e6973b30d7dfa2659495c4533281ec56;hpb=74a9ee62f69ff8f801740348186f321991f81a8f diff --git a/weather.py b/weather.py index 1dfa081..71cf0ec 100644 --- a/weather.py +++ b/weather.py @@ -212,7 +212,7 @@ def get_uri( except (IOError, OSError): pass dcache_fn = os.path.join( dcachedir, - uri.split(":")[1].replace("/","_") + uri.split(":",1)[1].replace("/","_") ) now = time.time() if cache_data and os.access(dcache_fn, os.R_OK) \