Skip to content

Commit

Permalink
Merge pull request #132 from dbermuehler/master
Browse files Browse the repository at this point in the history
Fixing _vars deprecation warning
  • Loading branch information
timvink authored Apr 26, 2024
2 parents af27290 + 0785c3c commit 530e842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs_git_revision_date_localized_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def on_config(self, config: config_options.Config, **kwargs) -> Dict[str, Any]:
# theme locale
if "theme" in config and "locale" in config.get("theme"):
custom_theme = config.get("theme")
theme_locale = custom_theme._vars.get("locale")
theme_locale = custom_theme.locale
logging.debug(
"Locale '%s' extracted from the custom theme: '%s'"
% (theme_locale, custom_theme.name)
Expand Down

0 comments on commit 530e842

Please sign in to comment.