From 390c71e6d0a8dc5d7cefac8e02ffc6993efb00b4 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 29 Apr 2011 14:01:56 +0000 Subject: [PATCH] 4841: Crash when exporting in sqlite database svn: r17338 --- src/plugins/export/ExportXml.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/export/ExportXml.py b/src/plugins/export/ExportXml.py index 56c45e86d..af0baad73 100644 --- a/src/plugins/export/ExportXml.py +++ b/src/plugins/export/ExportXml.py @@ -782,7 +782,11 @@ class GrampsXmlWriter(UpdateCallback): if not obj: return sp = " " * index - change_text = ' change="%d"' % obj.get_change_time() + try: + change_text = ' change="%d"' % obj.get_change_time() + except: + change_text = ' change="%d"' % 0 + handle_text = ' handle="_%s"' % obj.get_handle() obj_text = '%s<%s' % (sp, tagname)