From: Simeon Visser Date: Mon, 28 Aug 2017 19:35:32 +0000 (+0100) Subject: Fixed docstring of validate_currency function (#522) X-Git-Tag: v2.5.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7729ccbce85e5736a9a7de18321872dd1ed09d5;p=thirdparty%2Fbabel.git Fixed docstring of validate_currency function (#522) --- diff --git a/babel/numbers.py b/babel/numbers.py index 9a60d721..8728699f 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)