summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
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()