probcomp/bayeslite

Confusing error if querying a cgpm_metamodel without initialized models

fsaad opened this issue · 0 comments

fsaad commented

Sometimes the error check from this code is ignored, and a JSON error "expected string or buffer" is returned, rather than an error about no initialized models.

https://github.com/probcomp/bayeslite/blob/master/src/metamodels/cgpm_metamodel.py#L1050-L1065