Skip to content

Instantly share code, notes, and snippets.

@qpfiffer
Created April 24, 2013 21:34
Show Gist options
  • Save qpfiffer/5455766 to your computer and use it in GitHub Desktop.
Save qpfiffer/5455766 to your computer and use it in GitHub Desktop.
That doesn't seem right...
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