From c02066047950ed98c09232e2063586ede1355908 Mon Sep 17 00:00:00 2001 From: Samuel Lai Date: Sat, 17 May 2014 19:34:16 +1000 Subject: [PATCH] Bad URLs are left as bad external links, rather than re-written as bad internal links. This doesn't make much difference, but I think it is nicer to assume bad URLs are external, rather than internal. --- python/src/stackdump/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/stackdump/app.py b/python/src/stackdump/app.py index 77b5b18..3a75a53 100644 --- a/python/src/stackdump/app.py +++ b/python/src/stackdump/app.py @@ -831,7 +831,7 @@ def _rewrite_html(html, app_url_root, sites_by_urls): host = urllib2.Request(url).get_host() except ValueError: # invalid URL or local anchor, leaving as-is - internal_link = True + pass else: site = sites_by_urls.get(host, None) if site: