Skip to content

Commit

Permalink
Properly use return to prevent item from being overridden
Browse files Browse the repository at this point in the history
Signed-off-by: Reece Dunham <[email protected]>
  • Loading branch information
RDIL committed Feb 21, 2020
1 parent cecd658 commit c7f4244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mkdocs_plugin_progress/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def on_post_build(self):
_info("Finishing up...")

def on_template_context(self, *args, **kwargs):
_info("Contextualized {}.".format(kwargs["template_name"]))
return kwargs["context"]
_info("Contextualized template {}.".format(kwargs["template_name"]))
return None

def on_page_read_source(self, *args, **kwargs):
_info("Processing page \"{}\"...".format(kwargs["page"].file.src_path))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setuptools.setup(
name="mkdocs-plugin-progress",
version="1.1.2",
version="1.1.3",
packages=setuptools.find_packages(),
description="A plugin for MkDocs that lets you know exactly what is happening during the build.",
keywords=["mkdocs", "plugin", "progress", "build", "debugging"],
Expand Down

0 comments on commit c7f4244

Please sign in to comment.