mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Merge pull request #487 from misnyo/#485
[fix]#485 AttributeError: 'module' object has no attribute 'old_where'
This commit is contained in:
		
						commit
						46f2a4fab8
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -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') | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Adam Tauber
						Adam Tauber