From d8110a2f34a8d047e5137adb02c03acacc3dece1 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 --- gramps2/ChangeLog | 2 ++ gramps2/src/plugins/BookReport.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 5d62f370b..b450bebbd 100644 --- a/gramps2/ChangeLog +++ b/gramps2/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/gramps2/src/plugins/BookReport.py b/gramps2/src/plugins/BookReport.py index c4357c806..3134ae8f9 100644 --- a/gramps2/src/plugins/BookReport.py +++ b/gramps2/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