projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc7749
)
7824: Log errors when trying to read the collection specified.
author
Lucas Di Pentima <lucas@curoverse.com>
Mon, 3 Apr 2017 18:07:48 +0000
(15:07 -0300)
committer
Lucas Di Pentima <lucas@curoverse.com>
Mon, 3 Apr 2017 18:07:48 +0000
(15:07 -0300)
sdk/python/arvados/commands/get.py
patch
|
blob
|
history
diff --git
a/sdk/python/arvados/commands/get.py
b/sdk/python/arvados/commands/get.py
index 2d3af974bf3ec605b6eea90a5573c095c2813156..bf084419ef09e82b616ae2caef455fd6d6788ed3 100755
(executable)
--- a/
sdk/python/arvados/commands/get.py
+++ b/
sdk/python/arvados/commands/get.py
@@
-135,7
+135,11
@@
def main(arguments=None, stdout=sys.stdout, stderr=sys.stderr):
get_prefix = r.group(2)
if args.r and not get_prefix:
get_prefix = os.sep
- reader = arvados.CollectionReader(collection, num_retries=args.retries)
+ try:
+ reader = arvados.CollectionReader(collection, num_retries=args.retries)
+ except Exception as error:
+ logger.error("failed to read collection: {}".format(error))
+ return 1
if not get_prefix:
if not args.n: