Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
missed a possible None in es_app_to_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithan committed Sep 19, 2013
1 parent 6dba4be commit 0e3c4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkt/webapps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def es_app_to_dict(obj, region=None, profile=None, request=None):
price = Price.objects.get(name=price_tier)
if (data['upsell'] or payments_enabled(request)):
price_currency = price.get_price_currency(region=region)
if price_currency.paid:
if price_currency and price_currency.paid:
data['price'] = price.get_price(region=region)
data['price_locale'] = price.get_price_locale(
region=region)
Expand Down

0 comments on commit 0e3c4ae

Please sign in to comment.