Skip to content

Commit

Permalink
Fix for str/unicode handling of SHOP_CURRENCY_LOCALE. Closes #157.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmcd committed Jan 11, 2014
1 parent 45a65ac commit d9f6785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cartridge/shop/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def set_locale():
"""
Sets the locale for currency formatting.
"""
currency_locale = settings.SHOP_CURRENCY_LOCALE
currency_locale = str(settings.SHOP_CURRENCY_LOCALE)
try:
if setlocale(LC_MONETARY, currency_locale) == "C":
# C locale doesn't contain a suitable value for "frac_digits".
Expand Down

0 comments on commit d9f6785

Please sign in to comment.