From 99bb6f007c75a1af524a3bf6dd52ee22a84aa60d 2013-08-30 20:57:31 From: Brian E. Granger Date: 2013-08-30 20:57:31 Subject: [PATCH] Fixing attribute access. --- diff --git a/IPython/nbconvert/filters/citation.py b/IPython/nbconvert/filters/citation.py index 9bc8345..a057420 100644 --- a/IPython/nbconvert/filters/citation.py +++ b/IPython/nbconvert/filters/citation.py @@ -51,7 +51,7 @@ def _process_node_cite(node): """Do the citation replacement as we walk the lxml tree.""" def _get(o, name): - value = getattr(o, name) + value = getattr(o, name, None) return '' if value is None else value if 'data-cite' in node.attrib: