diff options
author | Simeon Visser <svisser@users.noreply.github.com> | 2017-08-28 20:35:32 +0100 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2017-08-28 22:35:32 +0300 |
commit | c7729ccbce85e5736a9a7de18321872dd1ed09d5 (patch) | |
tree | 6897dfe534c90fc60942b90cf94490a93181e5a2 /babel | |
parent | 231d337b569b15b9437cfefee6584ad8d54d0cd3 (diff) | |
download | babel-c7729ccbce85e5736a9a7de18321872dd1ed09d5.tar.gz |
Fixed docstring of validate_currency function (#522)
Diffstat (limited to 'babel')
-rw-r--r-- | babel/numbers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/babel/numbers.py b/babel/numbers.py index 9a60d72..8728699 100644 --- a/babel/numbers.py +++ b/babel/numbers.py @@ -68,7 +68,7 @@ def validate_currency(currency, locale=None): Accepts a ``locale`` parameter for fined-grained validation, working as the one defined above in ``list_currencies()`` method. - Raises a `ValueError` exception if the currency is unknown to Babel. + Raises a `UnknownCurrencyError` exception if the currency is unknown to Babel. """ if currency not in list_currencies(locale): raise UnknownCurrencyError(currency) |