From bec0ca315564ee7d7383c36140193b27f74f49e3 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 8 Oct 2006 02:38:51 +0000 Subject: [PATCH] * src/plugins/BookReport.py (BookList.parse): Catch ValueError exception (coming from urllib2). svn: r7367 --- ChangeLog | 2 ++ src/plugins/BookReport.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5d62f370b..b450bebbd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ 2006-10-07 Alex Roitman + * src/plugins/BookReport.py (BookList.parse): Catch ValueError + exception (coming from urllib2). * src/LdsUtils.py (temples): Correct code for San Antonio. * src/GrampsDb/_WriteGedcom.py (GedcomWriterOptionBox.get_option_box): Add custom filters to the diff --git a/src/plugins/BookReport.py b/src/plugins/BookReport.py index c4357c806..3134ae8f9 100644 --- a/src/plugins/BookReport.py +++ b/src/plugins/BookReport.py @@ -401,7 +401,7 @@ class BookList: p = make_parser() p.setContentHandler(BookParser(self)) p.parse(self.file) - except (IOError,OSError,SAXParseException): + except (IOError,OSError,ValueError,SAXParseException): pass