IACR / latex-submit

Web server to receive uploaded LaTeX and execute it in a docker container.
GNU Affero General Public License v3.0
11 stars 0 forks source link

Move check for \begin{thebibliography} #41

Closed kmccurley closed 1 year ago

kmccurley commented 1 year ago

I moved the check for \begin{thebibliography} to the /submit area, because compiler/runner.py runs in the ThreadPoolExecutor, and it's clumsy to handle exceptions there (I only handle system-related exceptions there, which should not happen). Things like checking for missing main.tex happens earlier in the routes.py before we submit it to the thread pool.