3544: Narrated web report does not get created

svn: r15197
This commit is contained in:
Doug Blank 2010-04-17 21:58:09 +00:00
parent 08a23911c9
commit fc298c806c

View File

@ -1150,6 +1150,8 @@ class BasePage(object):
pic_id = self.report.options[option_name] pic_id = self.report.options[option_name]
if pic_id: if pic_id:
obj = db.get_object_from_gramps_id(pic_id) obj = db.get_object_from_gramps_id(pic_id)
if obj is None:
return None
obj_handle = obj.handle obj_handle = obj.handle
mime_type = obj.get_mime_type() mime_type = obj.get_mime_type()
if mime_type and mime_type.startswith("image"): if mime_type and mime_type.startswith("image"):