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:
Sebastian 2018-01-23 13:05:07 +01:00 committed by amai2012
parent bddea350d3
commit 402807b3b0
1 changed files with 2 additions and 2 deletions

View File

@ -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)