diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-01-07 19:13:59 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2016-01-07 19:13:59 +0100 |
commit | 46f2a4fab815a989596da4a3bfc57982d23a7e00 (patch) | |
tree | 509d89b7373f2bb0a17ebabbc7955f94a98d98cb /searx | |
parent | 5b5d9524dbb9000771bef44b9d49da8a2c45051c (diff) | |
parent | f86e212dba14f842f77e9516668d25b036e7baf4 (diff) | |
download | searxng-46f2a4fab815a989596da4a3bfc57982d23a7e00.tar.gz searxng-46f2a4fab815a989596da4a3bfc57982d23a7e00.zip |
Merge pull request #487 from misnyo/#485
[fix]#485 AttributeError: 'module' object has no attribute 'old_where'
Diffstat (limited to 'searx')
-rw-r--r-- | searx/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/__init__.py b/searx/__init__.py index 76038a443..7b67a394f 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -52,7 +52,8 @@ logger = logging.getLogger('searx') # Workaround for openssl versions <1.0.2 # https://github.com/certifi/python-certifi/issues/26 if OPENSSL_VERSION_INFO[0:3] < (1, 0, 2): - environ['REQUESTS_CA_BUNDLE'] = certifi.old_where() + if hasattr(certifi, 'old_where'): + environ['REQUESTS_CA_BUNDLE'] = certifi.old_where() logger.warning('You are using an old openssl version({0}), please upgrade above 1.0.2!'.format(OPENSSL_VERSION)) logger.info('Initialisation done') |