mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
ruff UP031 in files: use format specifiers instead of percent format
This commit is contained in:
parent
3e81af966a
commit
30bde3823f
12 changed files with 47 additions and 50 deletions
|
|
@ -591,7 +591,7 @@ def configure_settings(settings: Settings) -> Settings:
|
|||
if os.path.exists(theme_path):
|
||||
settings["THEME"] = theme_path
|
||||
else:
|
||||
raise Exception("Could not find the theme %s" % settings["THEME"])
|
||||
raise Exception("Could not find the theme {}".format(settings["THEME"]))
|
||||
|
||||
# standardize strings to lowercase strings
|
||||
for key in ["DEFAULT_LANG"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue