summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-02-05 22:03:04 +0000
committerJeremy Katz <katzj@redhat.com>2003-02-05 22:03:04 +0000
commit97bf42e57ae82a73e2874e4f033e689eb293c063 (patch)
treec9372675ca829b2fa802ceeb63b716f89f4b00a5
parent8e26c8291ef1d26461ea7f45b87049d573559e53 (diff)
downloadanaconda-97bf42e57ae82a73e2874e4f033e689eb293c063.tar.gz
anaconda-97bf42e57ae82a73e2874e4f033e689eb293c063.tar.xz
anaconda-97bf42e57ae82a73e2874e4f033e689eb293c063.zip
url.info, not file.info. and make the exception a little bit less masked
-rw-r--r--urlinstall.py5
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: