From c7729ccbce85e5736a9a7de18321872dd1ed09d5 Mon Sep 17 00:00:00 2001 From: Simeon Visser Date: Mon, 28 Aug 2017 20:35:32 +0100 Subject: [PATCH] Fixed docstring of validate_currency function (#522) --- babel/numbers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2