Author: glen Date: Thu Jul 17 10:50:37 2008 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
- print out exception if url can't be retrieved
---- Files affected:
pld-builder.new/PLD_Builder:
request_fetcher.py (1.21 -> 1.22)
---- Diffs:
================================================================
Index: pld-builder.new/PLD_Builder/request_fetcher.py
diff -u pld-builder.new/PLD_Builder/request_fetcher.py:1.21
pld-builder.new/PLD_Builder/request_fetcher.py:1.22
--- pld-builder.new/PLD_Builder/request_fetcher.py:1.21 Thu Jun 26 01:26:06 2008
+++ pld-builder.new/PLD_Builder/request_fetcher.py Thu Jul 17 12:50:32 2008
@@ -43,9 +43,9 @@
f = urllib.urlopen(control_url + "/max_req_no")
count = int(string.strip(f.readline()))
signal.alarm(0)
- except:
+ except Exception, e:
signal.alarm(0)
- log.error("can't fetch %s" % (control_url + "/max_req_no"))
+ log.error("can't fetch %s: %s" % (control_url + "/max_req_no", e))
sys.exit(1)
res = 0
if count != last_count:
@@ -60,9 +60,9 @@
try:
f = urllib.urlopen(control_url + "/queue.gz")
signal.alarm(0)
- except:
+ except Exception, e:
signal.alarm(0)
- log.error("can't fetch %s" % (control_url + "/queue.gz"))
+ log.error("can't fetch %s: %s" % (control_url + "/queue.gz", e))
sys.exit(1)
sio = StringIO.StringIO()
util.sendfile(f, sio)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/request_fetcher.py?r1=1.21&r2=1.22&f=u
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit