4841: Crash when exporting in sqlite database

svn: r17338
This commit is contained in:
Doug Blank 2011-04-29 14:01:56 +00:00
parent d2f21b2b74
commit 390c71e6d0

View File

@ -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)