neuroelectro / neuroelectro_org

The NeuroElectro Project: Compiling information on neuron electrophysiology through literature text-mining.
neuroelectro.org
GNU General Public License v2.0
13 stars 5 forks source link

API returns a random list of items when a search key is not found #337

Open rgerkin opened 6 years ago

rgerkin commented 6 years ago

The URL here returns a random list of neurons instead of an error message (reflecting that no neuron with such a neurolex id exists). The correct behavior is observed when filtering by database id, e.g. here just returns an empty list. It is bad for random values to be returned in an error conditions, instead of any empty list.