Skip to content

Commit 7ebe546

Browse files
author
Victor Machado
committed
Only cleaning path when there are folders in the args object
1 parent da78337 commit 7ebe546

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: froster/froster.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -7621,8 +7621,9 @@ def main():
76217621
if cfg.is_shared and cfg.shared_dir:
76227622
cfg.assure_permissions_and_group(cfg.shared_dir)
76237623

7624-
# Clean the provided paths
7625-
cmd.args.folders = clean_path_list(cmd.args.folders)
7624+
# Clean the provided paths (if any)
7625+
if hasattr(cmd.args, "folders"):
7626+
cmd.args.folders = clean_path_list(cmd.args.folders)
76267627

76277628
# CLI commands that do NOT need credentials or configuration
76287629
if args.subcmd in ['config', 'cnf']:

0 commit comments

Comments
 (0)