Skip to content

Commit

Permalink
Extended error handling for get_user_color_theme (#8854)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat authored Jan 7, 2025
1 parent 8576fbb commit 4b56492
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b56492

Please sign in to comment.