Skip to content

Commit

Permalink
Merge pull request #704 from holzman/fix_errmsg_default_profile
Browse files Browse the repository at this point in the history
Fix error message when default profile is missing options
  • Loading branch information
consideRatio committed Apr 3, 2023
2 parents 6d6fc1d + 1c121d7 commit 863e536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubespawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3045,7 +3045,7 @@ async def _load_profile(self, slug, selected_profile_user_options):
not in profile.get('profile_options').keys()
):
raise ValueError(
f'Expected option {user_selected_option_name} for profile {slug}, not found in posted form'
f'Expected option {user_selected_option_name} for profile {profile["slug"]}, not found in posted form'
)

# Get selected options or default to the first option if none is passed
Expand Down

0 comments on commit 863e536

Please sign in to comment.