summaryrefslogtreecommitdiff
path: root/searx/botdetection/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/botdetection/config.py')
-rw-r--r--searx/botdetection/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/botdetection/config.py b/searx/botdetection/config.py
index d2710456..2a536d17 100644
--- a/searx/botdetection/config.py
+++ b/searx/botdetection/config.py
@@ -14,7 +14,7 @@ import copy
import typing
import logging
import pathlib
-import pytomlpp as toml
+import toml
__all__ = ['Config', 'UNSET', 'SchemaIssue']
@@ -72,7 +72,7 @@ class Config:
log.debug("load config file: %s", cfg_file)
try:
upd_cfg = toml.load(cfg_file)
- except toml.DecodeError as exc:
+ except toml.TomlDecodeError as exc:
msg = str(exc).replace('\t', '').replace('\n', ' ')
log.error("%s: %s", cfg_file, msg)
raise