From afb37f495f32ab03ea1a2b2dff566ae3d20eff5b 2013-07-19 22:24:56 From: MinRK Date: 2013-07-19 22:24:56 Subject: [PATCH] fix exception raising in svg2pdf --- diff --git a/IPython/nbconvert/transformers/svg2pdf.py b/IPython/nbconvert/transformers/svg2pdf.py index b6d7347..0a2e0da 100644 --- a/IPython/nbconvert/transformers/svg2pdf.py +++ b/IPython/nbconvert/transformers/svg2pdf.py @@ -91,4 +91,4 @@ class SVG2PDFTransformer(ConvertFiguresTransformer): # PDF is a nb supported binary, data type, so base64 encode. return base64.encodestring(f.read()) else: - return TypeError("Inkscape svg to png conversion failed") + raise TypeError("Inkscape svg to png conversion failed")