From a96208be965bfc082524f3e22d9339364e2a9976 Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Tue, 3 Feb 2015 19:56:26 +0100 Subject: Mediawiki's unit test --- searx/engines/currency_convert.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'searx/engines') diff --git a/searx/engines/currency_convert.py b/searx/engines/currency_convert.py index d8841c1d1..4618c82b1 100644 --- a/searx/engines/currency_convert.py +++ b/searx/engines/currency_convert.py @@ -13,12 +13,9 @@ def request(query, params): if not m: # wrong query return params - try: - ammount, from_currency, to_currency = m.groups() - ammount = float(ammount) - except: - # wrong params - return params + + ammount, from_currency, to_currency = m.groups() + ammount = float(ammount) q = (from_currency + to_currency).upper() -- cgit v1.2.3