Skip to content

Commit

Permalink
Revert "SubConfig now catches failures and warnings (#2710)"
Browse files Browse the repository at this point in the history
This reverts commit d7fa905.
  • Loading branch information
oprypin committed Mar 26, 2022
1 parent 5cf1963 commit 91923f5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mkdocs/config/config_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,7 @@ def validate(self, value):
return self.run_validation(value)

def run_validation(self, value):
failed, self.warnings = Config.validate(self)
if len(failed) > 0:
# get the first failing one
key, err = failed[0]
raise ValidationError(f"Sub-option {key!r} configuration error: {err}")

Config.validate(self)
return self


Expand Down

0 comments on commit 91923f5

Please sign in to comment.