diff options
| author | Dalf <alex@al-f.net> | 2019-03-24 07:41:42 +0100 |
|---|---|---|
| committer | Dalf <alex@al-f.net> | 2019-03-24 07:41:42 +0100 |
| commit | a80a2d05d14290c57c3cfc59d373e597b1c1c4b5 (patch) | |
| tree | 0890c251adeffa039a49634b83c7b575ac44722f /searx/__init__.py | |
| parent | b9e42e69be986a5f3980dc30d0ed25a9b1a47349 (diff) | |
| parent | 252ba92fddad357c820cdc6219377f0fb633c997 (diff) | |
Merge branch 'kvch-update-packages'
Diffstat (limited to 'searx/__init__.py')
| -rw-r--r-- | searx/__init__.py | 4 |
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 |