[ARVADOS] updated: 9c7058321b88320594fccec767a8326e0bb9db4f
git at public.curoverse.com
git at public.curoverse.com
Tue Sep 23 15:00:43 EDT 2014
Summary of changes:
sdk/python/bin/arv-get | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
via 9c7058321b88320594fccec767a8326e0bb9db4f (commit)
from 92211c8bed5aaf3abd83d02c4adbaf2329123bac (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 9c7058321b88320594fccec767a8326e0bb9db4f
Author: Ward Vandewege <ward at curoverse.com>
Date: Tue Sep 23 14:59:48 2014 -0400
* Do not blow up when arv-get requests a collection that gets a 404 from the api server.
* Be more consistent in naming of error variables.
no issue #
diff --git a/sdk/python/bin/arv-get b/sdk/python/bin/arv-get
index 38a9823..0059f3f 100755
--- a/sdk/python/bin/arv-get
+++ b/sdk/python/bin/arv-get
@@ -140,7 +140,7 @@ if not get_prefix:
except (IOError, OSError) as error:
abort("can't write to '{}': {}".format(args.destination, error))
except (arvados.errors.ApiError, arvados.errors.KeepReadError) as error:
- abort("failed to download '{}': {}".format(collection, e))
+ abort("failed to download '{}': {}".format(collection, error))
sys.exit(0)
# Scan the collection. Make an array of (stream, file, local
@@ -188,8 +188,8 @@ for s,f,outfilename in todo:
arvados.util.mkdir_dash_p(os.path.dirname(outfilename))
try:
outfile = open(outfilename, 'wb')
- except Exception as e:
- abort('Open(%s) failed: %s' % (outfilename, e))
+ except Exception as error:
+ abort('Open(%s) failed: %s' % (outfilename, error))
if args.hash:
digestor = hashlib.new(args.hash)
try:
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list