Skip to content

Commit

Permalink
fix config not passing new test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chovin committed Oct 2, 2024
1 parent 6d3a670 commit 6f74098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redbot/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ def _get_defaults_dict(key: str, value) -> dict:
for i, k in enumerate(splitted, start=1):
if not k.isidentifier():
raise RuntimeError("'{}' is an invalid config key.".format(k))
if k in [*vars(Config), *vars(Group), *vars(Value)]:
if k in [*dir(Config), *dir(Group), *dir(Value)]:
raise RuntimeError("'{}' is a reserved config key.".format(k))
if i == len(splitted):
partial[k] = value
Expand Down

0 comments on commit 6f74098

Please sign in to comment.