summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-02-03 19:56:26 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-02-03 19:56:26 +0100
commita96208be965bfc082524f3e22d9339364e2a9976 (patch)
tree3f19ded945f11e1dd4454a2372584ac9a9710234 /searx/engines
parent1ea5bc63a51d98527da7be65807575d965df61f9 (diff)
downloadsearxng-a96208be965bfc082524f3e22d9339364e2a9976.tar.gz
searxng-a96208be965bfc082524f3e22d9339364e2a9976.zip
Mediawiki's unit test
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/currency_convert.py9
1 files changed, 3 insertions, 6 deletions
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()