diff options
-rw-r--r-- | urlinstall.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/urlinstall.py b/urlinstall.py index 0805ac053..d56ebf91b 100644 --- a/urlinstall.py +++ b/urlinstall.py @@ -47,8 +47,9 @@ def urlretrieve(location, file): # sanity check result - sometimes FTP doesnt # catch a file is missing try: - clen = file.info()['content-length'] - except: + clen = url.info()['content-length'] + except Exception, e: + logMessage("exception %s getting content-length" %(e,)) clen = 0 if clen < 1: |