aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido G√ľnther <agx@sigxcpu.org>2009-08-31 17:54:16 +0200
committerGuido G√ľnther <agx@sigxcpu.org>2009-08-31 17:54:16 +0200
commit0fcfa307124390a89e3e6fb0217e7103e92e4dfc (patch)
tree5bc331ff341424a386ed6daeb1fa01d402cbf996
parentab3b2ba11e483cc9ce4f0238d9ca299c9ad1d7e8 (diff)
improve error message when we fail to parse the pts page
-rwxr-xr-xindex.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.cgi b/index.cgi
index f22bee6..423189a 100755
--- a/index.cgi
+++ b/index.cgi
@@ -114,7 +114,7 @@ def main(argv):
try:
pts = fetch_pts_page(pkg)
except Exception, exc_err:
- err=exc_err
+ err = exc_err
pts = None
if not pts:
@@ -122,8 +122,8 @@ def main(argv):
cl_url, vcs_url, vcs = parse_pts_xhtml(pts)
if cl_url == None:
- return render_search_page(pkg=pkg, err=err)
-
+ return render_search_page(title=title, pkg=pkg,
+ err="Cannot parse changelog from PTS page.")
try:
cl_text = fetch_changelog(cl_url)
except urlgrabber.grabber.URLGrabError, (errcode, errmsg):