eodms-sgdot / eodms-cli

The EODMS CLI Python script is used to search, order and download imagery from the Earth Observation Data Management System using the REST API service.
Other
28 stars 7 forks source link

Error occurs when fields choices is None #44

Closed keballantyne closed 7 months ago

keballantyne commented 7 months ago
**** ERROR ****

Traceback (most recent call last):
  File
"C:\Working\Development\EODMS\eodms-cli\_dev\eodms_cli.py", line 1836, in cli
prmpt.prompt()
  File
"C:\Working\Development\EODMS\eodms-cli\_dev\eodms_cli.py", line 1331, in prompt
self.eod.search_order_download(self.params)
  File
"C:\Working\Development\EODMS\eodms-cli\_dev\scripts\utils.py", line 1791, in
search_order_download
    query_imgs = self.query_entries(collections,
filters=filters,
  File
"C:\Working\Development\EODMS\eodms-cli\_dev\scripts\utils.py", line 1451, in
query_entries
    filt_parse = self._parse_filters(coll_filts)
  File
"C:\Working\Development\EODMS\eodms-cli\_dev\scripts\utils.py", line 388, in
_parse_filters
    choices = fld.get_choices(True)
  File
"C:\Working\Development\EODMS\eodms-cli\_dev\scripts\field.py", line 106, in
get_choices
    return [c.get('value') for c in self.choices]
TypeError:
'NoneType' object is not iterable
*****************