Fix #2561: Info builder crashes when a footnote contains a link

This commit is contained in:
Takeshi KOMIYA
2016-05-24 11:39:20 +09:00
parent b4df918071
commit 5e6dbe1088
2 changed files with 2 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ Bugs fixed
* ``sphinx.ext.intersphinx`` crashes if non-string value is used for key of `intersphinx_mapping`
* #2518: `intersphinx_mapping` disallows non alphanumeric keys
* #2558: unpack error on devhelp builder
* #2561: Info builder crashes when a footnote contains a link
Release 1.4.1 (released Apr 12, 2016)

View File

@@ -650,7 +650,7 @@ class TexinfoTranslator(nodes.NodeVisitor):
self.next_section_ids.add(node['refid'])
self.next_section_ids.update(node['ids'])
return
except IndexError:
except (IndexError, AttributeError):
pass
if 'refuri' in node:
return