Fixed error in setting None values

svn: r9381
This commit is contained in:
Doug Blank
2007-11-21 15:11:14 +00:00
parent 5975600e6a
commit d692868ce0
2 changed files with 17 additions and 5 deletions

View File

@ -69,8 +69,11 @@ class LivingProxyDb(ProxyDbBase):
"""
ProxyDbBase.__init__(self, db)
self.mode = mode
self.current_date = Date()
self.current_date.set_year(current_year)
if current_year != None:
self.current_date = Date()
self.current_date.set_year(current_year)
else:
self.current_date = None
self.years_after_death = years_after_death
def get_person_from_handle(self, handle):