diff --git a/ChangeLog b/ChangeLog index 20fb552c2..6c55ab03b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-05-15 Brian Matherly + * src/DataViews/_PedigreeView.py: Catch possible crash + 2007-05-14 Don Allingham * src/DataViews/_PedigreeView.py: catch errors * src/DataViews/_RelationView.py: catch errors diff --git a/src/DataViews/_PedigreeView.py b/src/DataViews/_PedigreeView.py index 43674049d..60ce1c2e0 100644 --- a/src/DataViews/_PedigreeView.py +++ b/src/DataViews/_PedigreeView.py @@ -852,7 +852,7 @@ class PedigreeView(PageView.PersonNavView): obj = self.dbstate.db.get_object_from_handle(object_handle) if obj: mtype = obj.get_mime_type() - if mtype[0:5] == "image": + if mtype and mtype[0:5] == "image": image = ImgManip.get_thumbnail_path(obj.get_path()) if cairo_available: pw = PersonBoxWidget_cairo( self.format_helper, lst[i][0], lst[i][3], positions[i][0][3], image);