[mod] disable searchcode SSL verification (unable to get local issuer)
This commit is contained in:
		
							parent
							
								
									3f31e1ce6b
								
							
						
					
					
						commit
						b9c8039d74
					
				| @ -34,6 +34,11 @@ def request(query, params): | ||||
|     params['url'] = search_url.format(query=urlencode({'q': query}), | ||||
|                                       pageno=params['pageno']-1) | ||||
| 
 | ||||
|     # Disable SSL verification | ||||
|     # error: (60) SSL certificate problem: unable to get local issuer | ||||
|     # certificate | ||||
|     params['verify'] = False | ||||
| 
 | ||||
|     return params | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -27,6 +27,11 @@ def request(query, params): | ||||
|     params['url'] = search_url.format(query=urlencode({'q': query}), | ||||
|                                       pageno=params['pageno']-1) | ||||
| 
 | ||||
|     # Disable SSL verification | ||||
|     # error: (60) SSL certificate problem: unable to get local issuer | ||||
|     # certificate | ||||
|     params['verify'] = False | ||||
| 
 | ||||
|     return params | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user