CoEDL / elpis

🙊 software for creating speech recognition models.
https://elpis.readthedocs.io/en/latest/
Apache License 2.0
152 stars 33 forks source link

404 on missing log file instead of returning text #74

Open shuttle1987 opened 4 years ago

shuttle1987 commented 4 years ago

https://github.com/CoEDL/elpis/blob/913c567bfaafc2081bc96fbd80036b07d4762bf0/elpis/endpoints/__init__.py#L26-L33

From the point of view of making tooling that interacts with this project it would be easier to deal with a missing log file if the following code had a 404 response when there's no log file instead of having to look at the contents of the returned text.