Merge pull request #2363 from dalf/fix-wikipedia-minor
[fix] wikipedia: minor fix: return no result instead of crash in some very few cases.
This commit is contained in:
		
						commit
						923bc02c17
					
				| @ -52,7 +52,7 @@ def response(resp): | |||||||
|     api_result = loads(resp.text) |     api_result = loads(resp.text) | ||||||
| 
 | 
 | ||||||
|     # skip disambiguation pages |     # skip disambiguation pages | ||||||
|     if api_result['type'] != 'standard': |     if api_result.get('type') != 'standard': | ||||||
|         return [] |         return [] | ||||||
| 
 | 
 | ||||||
|     title = api_result['title'] |     title = api_result['title'] | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user