summaryrefslogtreecommitdiff
path: root/sphinx/ext/mathbase.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-10-13 00:32:28 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-10-13 00:32:28 +0900
commitcdafec02ad4d3300d4f0162e71e98aa6736035aa (patch)
treeea13fbb419a82871ce6a1d68f9dda39f29784616 /sphinx/ext/mathbase.py
parentd87ba0d1dab36cbd0fe99d31eeb42bfed5c146ca (diff)
downloadsphinx-git-cdafec02ad4d3300d4f0162e71e98aa6736035aa.tar.gz
Fix #3038: ``sphinx.ext.math*`` raises TypeError if labels are duplicated
Diffstat (limited to 'sphinx/ext/mathbase.py')
-rw-r--r--sphinx/ext/mathbase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/mathbase.py b/sphinx/ext/mathbase.py
index 57bcb1c0c..ae4b439b7 100644
--- a/sphinx/ext/mathbase.py
+++ b/sphinx/ext/mathbase.py
@@ -209,7 +209,7 @@ class MathDirective(Directive):
self.state.document.note_explicit_target(target)
ret.insert(0, target)
except UserWarning as exc:
- self.state_machine.reporter.warning(exc[0], line=self.lineno)
+ self.state_machine.reporter.warning(exc.args[0], line=self.lineno)
def latex_visit_math(self, node):