Skip to content

Commit

Permalink
Merge pull request #775 from chrispyles/fix-import
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispyles authored Feb 14, 2024
2 parents f26d8b5 + 5ccec35 commit 6c22e56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion otter/export/exporters/via_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6c22e56

Please sign in to comment.