aboutsummaryrefslogtreecommitdiffstats
path: root/updateCache.py
diff options
context:
space:
mode:
Diffstat (limited to 'updateCache.py')
-rw-r--r--updateCache.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/updateCache.py b/updateCache.py
index ec41d0e..918cfd4 100644
--- a/updateCache.py
+++ b/updateCache.py
@@ -35,8 +35,9 @@ def getCacheFname(key, ftype, section):
section,
"%s.%s"%(key,ftype))
-def downloadFile(key, ftype, section, url,
- timeout=config.DOWNLOAD_CONNECT_TIMEOUT):
+def downloadFile(key, ftype, section, url,timeout=None):
+ if timeout is None:
+ timeout = config.DOWNLOAD_CONNECT_TIMEOUT
fname = getCacheFname(key, ftype, section)
fnameTmp = fname+".tmp"
fnameURL = fname+".url"