Protect from unknown types---just mark as unknown
svn: r15162
This commit is contained in:
parent
620cdb5510
commit
3e7ae3aeb5
@ -177,8 +177,10 @@ class GrampsType(object):
|
||||
"""
|
||||
if self.__value == self._CUSTOM:
|
||||
return self.__string
|
||||
else:
|
||||
elif self.__value in self._I2EMAP:
|
||||
return self._I2EMAP[self.__value]
|
||||
else:
|
||||
return _UNKNOWN
|
||||
|
||||
def serialize(self):
|
||||
"""Convert the object to a serialized tuple of data. """
|
||||
|
Loading…
Reference in New Issue
Block a user