From 402807b3b0fe77525bb1ecf783fdb7f86f1d630d Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 23 Jan 2018 13:05:07 +0100 Subject: [PATCH] daca2.py Minor fix: fomat string argument (found by Codacity) (#1037) * daca2.py Minor fix: fomat string argument (found by Codacity) * daca2.py: Change print call to logging.critical call --- tools/daca2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/daca2.py b/tools/daca2.py index 97cd1bb00..1c2773ca7 100644 --- a/tools/daca2.py +++ b/tools/daca2.py @@ -134,7 +134,7 @@ def scanarchive(filepath, jobs, cpulimit): if not wget(filepath): if not wget(filepath): - logging.error('wget failed at {}', filepath) + logging.error('wget failed at {}'.format(filepath)) return filename = filepath[filepath.rfind('/') + 1:] @@ -179,7 +179,7 @@ args = parser.parse_args() workdir = os.path.expanduser(args.workdir) if not os.path.isdir(workdir): - print('workdir \'' + workdir + '\' is not a folder') + logging.critical('workdir \'' + workdir + '\' is not a folder') sys.exit(1) workdir = os.path.join(workdir, args.folder)