Following \"Samurai principle\", I\'m trying to do this on my functions but seems it\'s wrong...
return if else raise
I like to do it with assertions, so you emphasize that that member must to be, like a contract.
>>> def foo(self): ... assert self.value, "Not Found" ... return self.value