summaryrefslogtreecommitdiff
path: root/searx/search/processors
diff options
context:
space:
mode:
Diffstat (limited to 'searx/search/processors')
-rw-r--r--searx/search/processors/online_currency.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/search/processors/online_currency.py b/searx/search/processors/online_currency.py
index 132c10594..0dc3f3b6a 100644
--- a/searx/search/processors/online_currency.py
+++ b/searx/search/processors/online_currency.py
@@ -20,6 +20,8 @@ def name_to_iso4217(name):
global CURRENCIES
name = normalize_name(name)
currency = CURRENCIES['names'].get(name, [name])
+ if isinstance(currency, str):
+ return currency
return currency[0]