##// END OF EJS Templates
Handle case where the shell does not have arbitrary mimerenderer handler....
Matthias Bussonnier -
Show More
@@ -105,7 +105,7 b' class DisplayPublisher(Configurable):'
105
105
106 handlers = {}
106 handlers = {}
107 if self.shell is not None:
107 if self.shell is not None:
108 handlers = self.shell.mime_renderers
108 handlers = getattr(self.shell, 'mime_renderers', {})
109
109
110 for mime, handler in handlers.items():
110 for mime, handler in handlers.items():
111 if mime in data:
111 if mime in data:
General Comments 0
You need to be logged in to leave comments. Login now