schuderer/mllaunchpad

Misleading error message "mllaunchpad.wsgi: Config file could not be loaded"

schuderer opened this issue · 2 comments

This error also occurs if loading a previous model fails during the the ModelApi initialization. The try-catch block in the wsgi module mistakenly assumes that FileNotFoundError can only occur when loading the config, but it can also occur on initializing ModelApi (if the model could not be loaded from the model store). See:

ModelApi(conf, application)

Should probably be handled separately.

I will work on this issue.

Thanks Bob!

There was a mistake in the issue description, it said „The try-catch block in the wsgi module mistakenly assumes that FileNotFoundError can only occur when loading the api.“

I edited it to say: „The try-catch block in the wsgi module mistakenly assumes that FileNotFoundError can only occur when loading the config, but it can also occur on initializing ModelApi (if the model could not be loaded from the model store)