diff --git a/gramps/src/Date.py b/gramps/src/Date.py index 50d3b761d..35364c4a1 100644 --- a/gramps/src/Date.py +++ b/gramps/src/Date.py @@ -324,7 +324,9 @@ class SingleDate: # #-------------------------------------------------------------------- def __cmp__(self,other): - if self.year != other.year: + if other == None: + return 0 + elif self.year != other.year: return cmp(self.year,other.year) elif self.month != other.month: return cmp(self.month,other.month) diff --git a/gramps/src/const.py b/gramps/src/const.py index c7db67949..28b79d9b7 100644 --- a/gramps/src/const.py +++ b/gramps/src/const.py @@ -74,7 +74,7 @@ gtkrcFile = rootDir + os.sep + "gtkrc" # #------------------------------------------------------------------------- progName = "gramps" -version = "0.3.2" +version = "0.4.0pre" copyright = "(C) 2001 Donald N. Allingham" authors = ["Donald N. Allingham"] comments = _("Gramps (Genealogical Research and Analysis Management Programming System) is a personal genealogy program that can be extended by using the Python programming language.")