Skip to content

Commit 5e6dbe1

Browse files
committed
Fix #2561: Info builder crashes when a footnote contains a link
1 parent b4df918 commit 5e6dbe1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Bugs fixed
6161
* ``sphinx.ext.intersphinx`` crashes if non-string value is used for key of `intersphinx_mapping`
6262
* #2518: `intersphinx_mapping` disallows non alphanumeric keys
6363
* #2558: unpack error on devhelp builder
64+
* #2561: Info builder crashes when a footnote contains a link
6465

6566

6667
Release 1.4.1 (released Apr 12, 2016)

sphinx/writers/texinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def visit_target(self, node):
650650
self.next_section_ids.add(node['refid'])
651651
self.next_section_ids.update(node['ids'])
652652
return
653-
except IndexError:
653+
except (IndexError, AttributeError):
654654
pass
655655
if 'refuri' in node:
656656
return

0 commit comments

Comments
 (0)