Reformat files with black

This commit is contained in:
Orsiris de Jong 2023-05-04 12:01:40 +02:00
parent 77474bfdbf
commit 53d3814546
2 changed files with 6 additions and 4 deletions

View file

@ -239,8 +239,10 @@ class NPBackupRunner:
)
)
can_run = False
elif '\n' in output.strip():
logger.error("Password command returned multiline content instead of a string")
elif "\n" in output.strip():
logger.error(
"Password command returned multiline content instead of a string"
)
can_run = False
else:
password = output

View file

@ -536,9 +536,9 @@ class ResticRunner:
case_ignore_param = "i"
for exclude_pattern in exclude_patterns:
cmd += " --{}exclude \"{}\"".format(case_ignore_param, exclude_pattern)
cmd += ' --{}exclude "{}"'.format(case_ignore_param, exclude_pattern)
for exclude_file in exclude_files:
cmd += " --{}exclude-file \"{}\"".format(case_ignore_param, exclude_file)
cmd += ' --{}exclude-file "{}"'.format(case_ignore_param, exclude_file)
if exclude_caches:
cmd += " --exclude-caches"
if one_file_system: