mirror of
https://github.com/netinvent/npbackup.git
synced 2025-12-11 22:25:57 +08:00
Reformat files with black
This commit is contained in:
parent
77474bfdbf
commit
53d3814546
2 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue