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
This commit is contained in:
parent
bddea350d3
commit
402807b3b0
|
@ -134,7 +134,7 @@ def scanarchive(filepath, jobs, cpulimit):
|
||||||
|
|
||||||
if not wget(filepath):
|
if not wget(filepath):
|
||||||
if not wget(filepath):
|
if not wget(filepath):
|
||||||
logging.error('wget failed at {}', filepath)
|
logging.error('wget failed at {}'.format(filepath))
|
||||||
return
|
return
|
||||||
|
|
||||||
filename = filepath[filepath.rfind('/') + 1:]
|
filename = filepath[filepath.rfind('/') + 1:]
|
||||||
|
@ -179,7 +179,7 @@ args = parser.parse_args()
|
||||||
|
|
||||||
workdir = os.path.expanduser(args.workdir)
|
workdir = os.path.expanduser(args.workdir)
|
||||||
if not os.path.isdir(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)
|
sys.exit(1)
|
||||||
|
|
||||||
workdir = os.path.join(workdir, args.folder)
|
workdir = os.path.join(workdir, args.folder)
|
||||||
|
|
Loading…
Reference in New Issue