@@ -373,6 +373,7 @@ def get_event_from_gramps_id(self, gramps_id):
373
373
if not self .db_is_open :
374
374
LOG .debug ("database is closed" )
375
375
LOG .warning ("gramps_id %s does not exist in the dummy database" , gramps_id )
376
+ return None
376
377
377
378
def get_event_from_handle (self , handle ):
378
379
"""
@@ -463,6 +464,7 @@ def get_family_from_gramps_id(self, gramps_id):
463
464
if not self .db_is_open :
464
465
LOG .debug ("database is closed" )
465
466
LOG .warning ("gramps_id %s does not exist in the dummy database" , gramps_id )
467
+ return None
466
468
467
469
def get_family_from_handle (self , handle ):
468
470
"""
@@ -604,6 +606,7 @@ def get_note_from_gramps_id(self, gramps_id):
604
606
if not self .db_is_open :
605
607
LOG .debug ("database is closed" )
606
608
LOG .warning ("gramps_id %s does not exist in the dummy database" , gramps_id )
609
+ return None
607
610
608
611
def get_note_from_handle (self , handle ):
609
612
"""
@@ -723,6 +726,7 @@ def get_media_from_gramps_id(self, gramps_id):
723
726
if not self .db_is_open :
724
727
LOG .debug ("database is closed" )
725
728
LOG .warning ("gramps_id %s does not exist in the dummy database" , gramps_id )
729
+ return None
726
730
727
731
def get_media_from_handle (self , handle ):
728
732
"""
@@ -769,6 +773,7 @@ def get_person_from_gramps_id(self, gramps_id):
769
773
if not self .db_is_open :
770
774
LOG .debug ("database is closed" )
771
775
LOG .warning ("gramps_id %s does not exist in the dummy database" , gramps_id )
776
+ return None
772
777
773
778
def get_person_from_handle (self , handle ):
774
779
"""
@@ -829,6 +834,7 @@ def get_place_from_gramps_id(self, gramps_id):
829
834
if not self .db_is_open :
830
835
LOG .debug ("database is closed" )
831
836
LOG .warning ("gramps_id %s does not exist in the dummy database" , gramps_id )
837
+ return None
832
838
833
839
def get_place_from_handle (self , handle ):
834
840
"""
@@ -970,6 +976,7 @@ def get_repository_from_gramps_id(self, gramps_id):
970
976
if not self .db_is_open :
971
977
LOG .debug ("database is closed" )
972
978
LOG .warning ("gramps_id %s does not exist in the dummy database" , gramps_id )
979
+ return None
973
980
974
981
def get_repository_from_handle (self , handle ):
975
982
"""
@@ -1040,6 +1047,7 @@ def get_source_from_gramps_id(self, gramps_id):
1040
1047
if not self .db_is_open :
1041
1048
LOG .debug ("database is closed" )
1042
1049
LOG .warning ("gramps_id %s does not exist in the dummy database" , gramps_id )
1050
+ return None
1043
1051
1044
1052
def get_source_from_handle (self , handle ):
1045
1053
"""
@@ -1100,6 +1108,7 @@ def get_citation_from_gramps_id(self, gramps_id):
1100
1108
if not self .db_is_open :
1101
1109
LOG .debug ("database is closed" )
1102
1110
LOG .warning ("gramps_id %s does not exist in the dummy database" , gramps_id )
1111
+ return None
1103
1112
1104
1113
def get_citation_from_handle (self , handle ):
1105
1114
"""
0 commit comments