* src/plugins/NavWebPage.py: Catch invalid HomeNote object
svn: r4158
This commit is contained in:
parent
46da2d9a61
commit
1869866af9
@ -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