summaryrefslogtreecommitdiff
path: root/searx/__init__.py
diff options
context:
space:
mode:
authorNoémi Ványi <sitbackandwait@gmail.com>2019-01-07 21:06:53 +0100
committerNoémi Ványi <sitbackandwait@gmail.com>2019-02-23 18:52:36 +0100
commit2478c5395d5504529e5d4b8ee09092fedbc71fbf (patch)
tree2fec8739a784ee0247e048bafa7208c556666502 /searx/__init__.py
parentb9e42e69be986a5f3980dc30d0ed25a9b1a47349 (diff)
downloadsearxng-2478c5395d5504529e5d4b8ee09092fedbc71fbf.tar.gz
searxng-2478c5395d5504529e5d4b8ee09092fedbc71fbf.zip
update pyyaml
Diffstat (limited to 'searx/__init__.py')
-rw-r--r--searx/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/__init__.py b/searx/__init__.py
index b1010f25f..4d7b2a8d3 100644
--- a/searx/__init__.py
+++ b/searx/__init__.py
@@ -22,7 +22,7 @@ from os.path import realpath, dirname, join, abspath, isfile
from io import open
from ssl import OPENSSL_VERSION_INFO, OPENSSL_VERSION
try:
- from yaml import load
+ from yaml import safe_load
except:
from sys import exit, stderr
stderr.write('[E] install pyyaml\n')
@@ -52,7 +52,7 @@ if not settings_path:
# load settings
with open(settings_path, 'r', encoding='utf-8') as settings_yaml:
- settings = load(settings_yaml)
+ settings = safe_load(settings_yaml)
'''
enable debug if