mountetna / magma

Data server with friendly data loaders
GNU General Public License v2.0
5 stars 2 forks source link

/retrieve does not catch QuestionError #193

Open graft opened 4 years ago

graft commented 4 years ago

The Question interface now raises a QuestionError, which endpoints should catch and do something with; /query does this and formats a 422 with the error. However, /retrieve (which also uses the Question interface) does not, resulting in a 500 when we could have a 422.