From 6b68269f9b77081f0b21f3dc0050d721d37537fd 2013-09-13 18:16:04 From: MinRK Date: 2013-09-13 18:16:04 Subject: [PATCH] protect against unavailable tornado in post_processors.init --- diff --git a/IPython/nbconvert/postprocessors/__init__.py b/IPython/nbconvert/postprocessors/__init__.py index 6cae641..9f954f3 100644 --- a/IPython/nbconvert/postprocessors/__init__.py +++ b/IPython/nbconvert/postprocessors/__init__.py @@ -1,3 +1,8 @@ from .base import PostProcessorBase from .pdf import PDFPostProcessor -from .serve import ServePostProcessor + +# protect against unavailable tornado +try: + from .serve import ServePostProcessor +except ImportError: + pass