Skip to content

Commit 0b36e8b

Browse files
QuLogickrassowski
andauthored
Fix crash when running with optimization (#2160)
Co-authored-by: Michał Krassowski <[email protected]>
1 parent edd96d1 commit 0b36e8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nbconvert/exporters/templateexporter.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ class TemplateExporter(Exporter):
151151
"""
152152

153153
# finish the docstring
154-
__doc__ = __doc__.format(filters="- " + "\n - ".join(sorted(default_filters.keys())))
154+
__doc__ = (
155+
__doc__.format(filters="- " + "\n - ".join(sorted(default_filters.keys())))
156+
if __doc__
157+
else None
158+
)
155159

156160
_template_cached = None
157161

0 commit comments

Comments
 (0)