Skip to content

Commit

Permalink
Fix crash when running with optimization (#2160)
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Krassowski <[email protected]>
  • Loading branch information
QuLogic and krassowski authored Jan 28, 2025
1 parent edd96d1 commit 0b36e8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nbconvert/exporters/templateexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ class TemplateExporter(Exporter):
"""

# finish the docstring
__doc__ = __doc__.format(filters="- " + "\n - ".join(sorted(default_filters.keys())))
__doc__ = (
__doc__.format(filters="- " + "\n - ".join(sorted(default_filters.keys())))
if __doc__
else None
)

_template_cached = None

Expand Down

0 comments on commit 0b36e8b

Please sign in to comment.