forked from github/pelican
More ruff fixes in files: stop ignoring C408, UP007, PLR5501, B006
This commit is contained in:
parent
3624bcdbf4
commit
7577dd7603
16 changed files with 72 additions and 82 deletions
|
|
@ -1095,7 +1095,7 @@ def fields2pelican(
|
|||
|
||||
if posts_require_pandoc:
|
||||
logger.error(
|
||||
"Pandoc must be installed to import the following posts:" "\n {}".format(
|
||||
"Pandoc must be installed to import the following posts:\n {}".format(
|
||||
"\n ".join(posts_require_pandoc)
|
||||
)
|
||||
)
|
||||
|
|
@ -1232,7 +1232,7 @@ def main():
|
|||
exit(error)
|
||||
|
||||
if args.wp_attach and input_type != "wordpress":
|
||||
error = "You must be importing a wordpress xml " "to use the --wp-attach option"
|
||||
error = "You must be importing a wordpress xml to use the --wp-attach option"
|
||||
exit(error)
|
||||
|
||||
if input_type == "blogger":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue