solvebio-python icon indicating copy to clipboard operation
solvebio-python copied to clipboard

Retrieving a field by name fails if the field does not exist

Open davecap opened this issue 7 years ago • 2 comments

To reproduce, try retrieving a non-existent field by name:

Dataset.retrieve("510109121752906223").fields(name='foobar')

    160             })
    161             fields = self._client.get(self.fields_url, params)
--> 162             result = DatasetField.retrieve(fields['data'][0]['id'],
    163                                            client=self._client)
    164             return result

IndexError: list index out of range

davecap avatar Jun 11 '18 21:06 davecap

Just encountered this.

jsh2134 avatar Jul 26 '18 20:07 jsh2134

Just encountered this

davidhpark avatar Feb 05 '19 20:02 davidhpark