mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Catch potential error updating image that does not exist...
This commit is contained in:
		| @@ -44,8 +44,6 @@ class CompanyConfig(AppConfig): | ||||
|                             company.image.render_variations(replace=False) | ||||
|                         except FileNotFoundError: | ||||
|                             logger.warning(f"Image file '{company.image}' missing") | ||||
|                             company.image = None | ||||
|                             company.save() | ||||
|                         except UnidentifiedImageError: | ||||
|                             logger.warning(f"Image file '{company.image}' is invalid") | ||||
|         except (OperationalError, ProgrammingError): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user