mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Ruff v0.4.6 auto-fixes
This commit is contained in:
parent
800f22b3ba
commit
0bd02c00c0
5 changed files with 18 additions and 29 deletions
|
|
@ -322,10 +322,7 @@ def handle_deprecated_settings(settings: Settings) -> Settings:
|
|||
"EXTRA_TEMPLATES_PATHS is deprecated use "
|
||||
"THEME_TEMPLATES_OVERRIDES instead."
|
||||
)
|
||||
if (
|
||||
"THEME_TEMPLATES_OVERRIDES" in settings
|
||||
and settings["THEME_TEMPLATES_OVERRIDES"]
|
||||
):
|
||||
if settings.get("THEME_TEMPLATES_OVERRIDES"):
|
||||
raise Exception(
|
||||
"Setting both EXTRA_TEMPLATES_PATHS and "
|
||||
"THEME_TEMPLATES_OVERRIDES is not permitted. Please move to "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue