v0.6.1 - fix "NameError: global name 'downloadurl' is not defined" when there's an HTTP timeout
authorWilliam Roberts <williamr@symbian.org>
Fri, 05 Feb 2010 14:53:29 +0000
changeset 155 b6c06a8333fb
parent 154 77c25e4f2c6f
child 156 753418a2eb15
child 158 27cf0a88d449
v0.6.1 - fix "NameError: global name 'downloadurl' is not defined" when there's an HTTP timeout
downloadkit/downloadkit.py
--- a/downloadkit/downloadkit.py	Fri Feb 05 13:05:49 2010 +0000
+++ b/downloadkit/downloadkit.py	Fri Feb 05 14:53:29 2010 +0000
@@ -247,10 +247,10 @@
 
 	#handle errors
 	except urllib2.HTTPError, e:
-		print "HTTP Error:",e.code , downloadurl
+		print "HTTP Error:",e.code , url
 		return False
 	except urllib2.URLError, e:
-		print "URL Error:",e.reason , downloadurl
+		print "URL Error:",e.reason , url
 		return False
 	return True
 
@@ -310,7 +310,7 @@
 
 	return 1
 
-parser = OptionParser(version="%prog 0.6", usage="Usage: %prog [options] version")
+parser = OptionParser(version="%prog 0.6.1", usage="Usage: %prog [options] version")
 parser.add_option("-n", "--dryrun", action="store_true", dest="dryrun",
 	help="print the files to be downloaded, the 7z commands, and the recommended deletions")
 parser.add_option("--nosrc", action="store_true", dest="nosrc",