From 97bf42e57ae82a73e2874e4f033e689eb293c063 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 5 Feb 2003 22:03:04 +0000 Subject: url.info, not file.info. and make the exception a little bit less masked --- urlinstall.py | 5 +++-- 1 file 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: -- cgit