diff options
author | a01200356 <a01200356@itesm.mx> | 2016-01-08 11:15:50 -0600 |
---|---|---|
committer | a01200356 <a01200356@itesm.mx> | 2016-01-08 11:15:50 -0600 |
commit | 3bbdb23fd86a65d9c982aa34ee42326fa3dd9bc1 (patch) | |
tree | dc801393dbf3e5f10b60f4fce6e55524e47b988b /searx | |
parent | 8ca574481485847d5e0f47627d20c543c39b7b66 (diff) | |
parent | 44c7eac958ea01d981ed4e31e10f51d9059f7945 (diff) | |
download | searxng-3bbdb23fd86a65d9c982aa34ee42326fa3dd9bc1.tar.gz searxng-3bbdb23fd86a65d9c982aa34ee42326fa3dd9bc1.zip |
Merge branch 'master' of https://github.com/asciimoo/searx
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') |