Created
April 24, 2013 21:34
-
-
Save qpfiffer/5455766 to your computer and use it in GitHub Desktop.
That doesn't seem right...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_price(self, level, when=None): | |
price_obj = self.get_price_object(level, when=None) | |
if price_obj: | |
return price_obj.price | |
else: | |
#:MC: templates are not handling error-raising attributes very well | |
#raise NoProductPriceError | |
return None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment