From cc595f783c34422348ccced1f814d1d07ebcd496 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 11 May 2005 03:34:03 +0000 Subject: [PATCH] fix callback call svn: r4546 --- gramps2/src/ReadXML.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps2/src/ReadXML.py b/gramps2/src/ReadXML.py index fa943f624..c68674187 100644 --- a/gramps2/src/ReadXML.py +++ b/gramps2/src/ReadXML.py @@ -940,7 +940,8 @@ class GrampsParser: pass def stop_database(self,*tag): - self.callback(False) + if self.callback: + self.callback(False) def stop_object(self,*tag): self.db.commit_media_object(self.object,self.trans,self.change)