X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/753c1446ea70d70043be0913e52bb270d28ecded..96aad215edcc0f314216c07df9246799665dd19d:/sdk/python/bin/arv-get diff --git a/sdk/python/bin/arv-get b/sdk/python/bin/arv-get index 0d817e2ebd..60d4bec3b9 100755 --- a/sdk/python/bin/arv-get +++ b/sdk/python/bin/arv-get @@ -225,8 +225,8 @@ for s,f,outfilename in todo: sys.stderr.write("%s %s/%s\n" % (digestor.hexdigest(), s.name(), f.name())) except KeyboardInterrupt: - if outfile and (outfile.fileno() > 2) and (not outfile.closed()): - os.unlink(outfilename) + if outfile and (outfile.fileno() > 2) and not outfile.closed: + os.unlink(outfile.name) break if args.progress: