6593: Typo fix in KeyboardInterrupt handling.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Mon, 27 Jul 2015 14:37:32 +0000 (10:37 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Mon, 27 Jul 2015 14:37:32 +0000 (10:37 -0400)
sdk/python/bin/arv-get

index 0d817e2ebd473ef30c0431ffb7e1b45ae42b5544..60d4bec3b95c429643d7df4a600f72754954809a 100755 (executable)
@@ -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: