I'm using caltechdata_api and seem to have found a bug in caltechdata_edit versions 1.4.0 through 1.4.2. It tries to reference ex_file_links before assignment. In the code, I see an if/else clause that refers to both ex_file_links and file_links, so perhaps a variable name was changed only partially?
File "/home/ubuntu/anaconda3/envs/casa38/lib/python3.8/site-packages/event/caltechdata.py", line 95, in edit_ctd
caltechdata_edit(idv=idv, token=token, metadata=metadata, files=files, production=production, publish=publish)
File "/home/ubuntu/anaconda3/envs/casa38/lib/python3.8/site-packages/caltechdata_api/caltechdata_edit.py", line 99, in caltechdata_edit
elif ex_file_links:
UnboundLocalError: local variable 'ex_file_links' referenced before assignment
I'm using caltechdata_api and seem to have found a bug in
caltechdata_edit
versions 1.4.0 through 1.4.2. It tries to referenceex_file_links
before assignment. In the code, I see an if/else clause that refers to bothex_file_links
andfile_links
, so perhaps a variable name was changed only partially?