Bug #9118

Updated by Peter Amstutz over 5 years ago

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>
File "/usr/local/lib/python2.7/dist-packages/arvados/commands/put.py", line 533, in main
UnboundLocalError: local variable 'output' referenced before assignment