Project

General

Profile

Actions

Bug #9118

closed

[SDK] arv-put unbound variable 'output' after exception from API server

Added by Peter Amstutz almost 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
-

Description

When the API server raises an error, arv-put fails with UnboundLocalError: local variable 'output' referenced before assignment:

arv-put: Error creating Collection on project: <HttpError 422 when requesting https://gcam1.example.com/arvados/v1/collections?ensure_unique_name=true&alt=json returned "#<NoMemoryError: failed to allocate memory>">.
Traceback (most recent call last):
 File "/usr/local/bin/arv-put", line 4, in <module>
   main()
 File "/usr/local/lib/python2.7/dist-packages/arvados/commands/put.py", line 533, in main
   stdout.write(output)
UnboundLocalError: local variable 'output' referenced before assignment

Subtasks 1 (0 open1 closed)

Task #9127: Review 9118-arv-put-nameerror-fix-wipResolvedBrett Smith05/02/2016Actions
Actions

Also available in: Atom PDF