diff --git a/CHANGELOG.md b/CHANGELOG.md index e228333f5..28c0694a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +**v5.4.1 (unreleased):** + +* Fixed import of the `LatexFailed` error for `nbconvert` 7 + **v5.4.0:** * Updated submission runners to export and submit the PDF and then remove all copies of the API token before executing the submission to ensure that student code can't gain access to the token diff --git a/otter/export/exporters/via_latex.py b/otter/export/exporters/via_latex.py index fdb6fa63c..05da8f07e 100644 --- a/otter/export/exporters/via_latex.py +++ b/otter/export/exporters/via_latex.py @@ -67,7 +67,7 @@ def convert_notebook(cls, nb_path, dest, xecjk=False, **kwargs): with open(dest, "wb") as output_file: output_file.write(pdf_output[0]) - except nbconvert.pdf.LatexFailed as error: + except nbconvert.exporters.pdf.LatexFailed as error: message = "There was an error generating your LaTeX; showing full error message:\n" message += indent(error.output, " ") if xecjk: