with open(args.destination, 'wb') as f:
try:
c = arvados.api('v1').collections().get(
uuid=collection).execute()
manifest = c['manifest_text']
except Exception as e:
with open(args.destination, 'wb') as f:
try:
c = arvados.api('v1').collections().get(
uuid=collection).execute()
manifest = c['manifest_text']
except Exception as e: