]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fixed docstring of validate_currency function (#522)
authorSimeon Visser <svisser@users.noreply.github.com>
Mon, 28 Aug 2017 19:35:32 +0000 (20:35 +0100)
committerAarni Koskela <akx@iki.fi>
Mon, 28 Aug 2017 19:35:32 +0000 (22:35 +0300)
babel/numbers.py

index 9a60d721df7681f05448290cff1c66ed0a67ecf2..8728699fb23b4f514f838b2a5950d525addf4585 100644 (file)
@@ -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)