diff --git a/IPython/nbconvert/exporters/export.py b/IPython/nbconvert/exporters/export.py index 68dd3b4..92fdd5f 100755 --- a/IPython/nbconvert/exporters/export.py +++ b/IPython/nbconvert/exporters/export.py @@ -221,5 +221,5 @@ def export_by_name(template_name, nb, config=None, transformers=None, filters=No if function_name in globals(): return globals()[function_name](nb, config, transformers, filters) else: - return None + raise NameError("template not found")