Skip to content

Commit

Permalink
fix(config.model): convert key to str in extra_steps
Browse files Browse the repository at this point in the history
  • Loading branch information
loqusion committed Mar 30, 2024
1 parent 657bbb4 commit ed91411
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hyprshade/config/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ def config(self) -> dict[str, Any] | None:
augmented_config = {}
for key, value in config.items():
if not isinstance(key, str):
self.raise_error("key must be a string", extra_steps=(key,))
self.raise_error(
"key must be a string", extra_steps=(str(key),)
)
if isinstance(value, str):
value = value.upper()
augmented_config[key] = value
Expand Down

0 comments on commit ed91411

Please sign in to comment.