diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2014-12-29 14:50:43 +0100 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2014-12-29 14:50:43 +0100 |
commit | 39268f1aa28e673e15c2a48a52dd3249b99ae04f (patch) | |
tree | 4602c33e1e09cc6ee1b8c5af8fb6582d2dd38677 | |
parent | ccd8be8428a962f8a626213079babfaf2ec1c799 (diff) |
Improve message.
-rw-r--r-- | scrapersources/postliste-halden | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scrapersources/postliste-halden b/scrapersources/postliste-halden index 0fd6df2..dc7a589 100644 --- a/scrapersources/postliste-halden +++ b/scrapersources/postliste-halden @@ -18,6 +18,7 @@ import resource import sys import urlparse import urllib +import urllib2 import re lazycache=scraperwiki.swimport('lazycache') postlistelib=scraperwiki.swimport('postliste-python-lib') @@ -45,7 +46,7 @@ def process_pdf(parser, pdfurl, errors): except IndexError, e: errors.append(e) except urllib2.HTTPError, e: - errors.append(e) + errors.append(str(e) + " " + pdfurl) def process_page_queue(parser, errors): try: |