PEP8 fixes

master
Eugen Ciur 2020-11-29 08:54:51 +01:00
parent 7fe9928d74
commit f02db89086
2 changed files with 2 additions and 4 deletions

View File

@ -285,8 +285,6 @@ def reorder_pages(
def delete_pages(src, dst, page_numbers):
page_count = get_pagecount(src)
cmd = [
settings.BINARY_STAPLER,
"del",

View File

@ -87,7 +87,7 @@ def get_assigns_after_delete(total_pages, deleted_pages):
]
"""
if total_pages < len(deleted_pages):
err_msg = f"total_pages < deleted_pages"
err_msg = "total_pages < deleted_pages"
raise ValueError(err_msg)
# only numbers of pages which were not deleted
@ -136,7 +136,7 @@ def try_load_config(config_locations, config_env_var_name):
try:
cfg_papermerge, cfg_file_found = load_config(config_file)
except FileNotFoundError:
err_msg = f"Failed attempted to read" +\
err_msg = "Failed attempted to read" +\
f" configuration file '{config_file}'" +\
f" pointed by environment variable '{config_env_var_name}'"
raise FileNotFoundError(err_msg)