mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Extended error handling for get_user_color_theme (#8854)
This commit is contained in:
		| @@ -463,7 +463,7 @@ def get_user_color_theme(user): | ||||
|         user_theme_name = user_theme.name | ||||
|         if not user_theme_name or not ColorTheme.is_valid_choice(user_theme): | ||||
|             user_theme_name = 'default' | ||||
|     except ColorTheme.DoesNotExist: | ||||
|     except Exception: | ||||
|         user_theme_name = 'default' | ||||
|  | ||||
|     return user_theme_name | ||||
|   | ||||
		Reference in New Issue
	
	Block a user