fixed error formatting in currency.py
This commit is contained in:
@@ -74,7 +74,7 @@ class Currency(object):
|
|||||||
try:
|
try:
|
||||||
i18n.babel.Locale('en').currencies[code]
|
i18n.babel.Locale('en').currencies[code]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise ValueError("{0}' is not valid currency code.")
|
raise ValueError("'{0}' is not valid currency code.".format(code))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def symbol(self):
|
def symbol(self):
|
||||||
|
Reference in New Issue
Block a user