Skip to content

Commit 507509c

Browse files
committed
Bug Fix: use the nbconvert.exporters.base instead of deprecated exporter_map
1 parent 3c62f3b commit 507509c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebook/nbconvert/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ def get_exporter(format, **kwargs):
5858
"""get an exporter, raising appropriate errors"""
5959
# if this fails, will raise 500
6060
try:
61-
from nbconvert.exporters.export import exporter_map
61+
from nbconvert.exporters.base import get_exporter
6262
except ImportError as e:
6363
raise web.HTTPError(500, "Could not import nbconvert: %s" % e)
6464

6565
try:
66-
Exporter = exporter_map[format]
66+
Exporter = get_exporter(format)
6767
except KeyError:
6868
# should this be 400?
6969
raise web.HTTPError(404, u"No exporter for format: %s" % format)

0 commit comments

Comments
 (0)