diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-02-05 22:03:04 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-02-05 22:03:04 +0000 |
commit | 97bf42e57ae82a73e2874e4f033e689eb293c063 (patch) | |
tree | c9372675ca829b2fa802ceeb63b716f89f4b00a5 /urlinstall.py | |
parent | 8e26c8291ef1d26461ea7f45b87049d573559e53 (diff) | |
download | anaconda-97bf42e57ae82a73e2874e4f033e689eb293c063.tar.gz anaconda-97bf42e57ae82a73e2874e4f033e689eb293c063.tar.xz anaconda-97bf42e57ae82a73e2874e4f033e689eb293c063.zip |
url.info, not file.info. and make the exception a little bit less masked
Diffstat (limited to 'urlinstall.py')
-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: |