* src/plugins/NavWebPage.py: Catch invalid HomeNote object
svn: r4158
This commit is contained in:
parent
aa9924fb66
commit
2e6c2f1c10
@ -3,6 +3,7 @@
|
||||
HaveAltFamilies,HavePhotos,HaveChildren,NeverMarried,
|
||||
MultipleMarriages,NoBirthdate): Add filter rules.
|
||||
* src/gramps_main.py (init_filters): Add new filters to the menu.
|
||||
* src/plugins/NavWebPage.py: Catch invalid HomeNote object
|
||||
|
||||
2005-03-09 Don Allingham <don@gramps-project.org>
|
||||
* src/ChooseParents.py: Fix widget sensitivity problem, assign
|
||||
|
@ -398,6 +398,9 @@ class HomePage(BasePage):
|
||||
if note_id:
|
||||
obj = db.get_object_from_gramps_id(note_id)
|
||||
|
||||
if not obj:
|
||||
print "%s object not found" % note_id
|
||||
else:
|
||||
if obj.get_mime_type()[0:5] == "image":
|
||||
newpath = obj.gramps_id + os.path.splitext(obj.get_path())[1]
|
||||
shutil.copyfile(obj.get_path(),
|
||||
|
Loading…
Reference in New Issue
Block a user