todo = []
todo_bytes = 0
+api_client = arvados.api('v1')
if not get_prefix:
try:
if not args.n:
abort('Local file %s already exists.' % (args.destination,))
with open(args.destination, 'wb') as f:
try:
- c = arvados.api('v1').collections().get(
- uuid=collection).execute()
+ c = api_client.collections().get(uuid=collection).execute()
manifest = c['manifest_text']
except Exception as e:
logger.warning(
"Collection %s not found. " +
"Trying to fetch directly from Keep (deprecated).",
collection)
- manifest = arvados.Keep.get(collection)
+ manifest = arvados.KeepClient(
+ api_client=api_client).get(collection)
f.write(manifest)
sys.exit(0)
except arvados.errors.NotFoundError as e: