Upload of data fails if not in verbose mode
I just tried to upload data to CoScInE using the API in the non-verbose mode and encountered a
NameError: free variable 'bar' referenced before assignment in enclosing scope
bar is only populated in the verbose mode, however, used in all cases in the
lambda function causing the error:
For now, I just use
client.verbose= True; client.upload... ; client.verbose=False as a workaround.