Skip to content

Commit b82c035

Browse files
committed
Assert 'authorship_threshold_percent' input is between 0-100
1 parent b971c84 commit b82c035

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mkdocs_git_authors_plugin/plugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def on_config(self, config, **kwargs):
5252
if not self.config.get('enabled'):
5353
return config
5454

55+
assert self.config['authorship_threshold_percent'] >= 0
56+
assert self.config['authorship_threshold_percent'] <= 100
57+
5558
try:
5659
self._repo = Repo()
5760
self._fallback = False

0 commit comments

Comments
 (0)