Prevent TB
This commit is contained in:
		
							parent
							
								
									ce3f2ca807
								
							
						
					
					
						commit
						30b1c838dd
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -355,6 +355,10 @@ def get_pixbuf_from_data(file_data, want_type = False): | |||
| 		pixbuf = pixbufloader.get_pixbuf() | ||||
| 	except gobject.GError: # 'unknown image format' | ||||
| 		pixbuf = None | ||||
| 		if want_type: | ||||
| 			return None, None | ||||
| 		else: | ||||
| 			return None | ||||
| 
 | ||||
| 	if want_type: | ||||
| 		typ = pixbufloader.get_format()['name'] | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue