We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c62f3b commit 507509cCopy full SHA for 507509c
notebook/nbconvert/handlers.py
@@ -58,12 +58,12 @@ def get_exporter(format, **kwargs):
58
"""get an exporter, raising appropriate errors"""
59
# if this fails, will raise 500
60
try:
61
- from nbconvert.exporters.export import exporter_map
+ from nbconvert.exporters.base import get_exporter
62
except ImportError as e:
63
raise web.HTTPError(500, "Could not import nbconvert: %s" % e)
64
65
66
- Exporter = exporter_map[format]
+ Exporter = get_exporter(format)
67
except KeyError:
68
# should this be 400?
69
raise web.HTTPError(404, u"No exporter for format: %s" % format)
0 commit comments