Fix comparison to None

This commit is contained in:
Laurent Bachelier 2013-04-09 23:09:29 +02:00 committed by Romain Bignon
commit fcd042b453

View file

@ -70,7 +70,7 @@ class Recipe(CapBaseObject):
if not empty(self.author): if not empty(self.author):
sauthor += '%s@' % self.author sauthor += '%s@' % self.author
if author == None: if author is None:
sauthor += 'Cookboob' sauthor += 'Cookboob'
else: else:
sauthor += author sauthor += author