summaryrefslogtreecommitdiff
path: root/sphinx/directives/patches.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-12-16 09:21:55 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2018-12-16 09:21:55 -0800
commitd414471eed13828421fd5a3b86ac55cd15e2125a (patch)
tree79f952840aedeecc303aa3230985b9585b8e9d9d /sphinx/directives/patches.py
parent6461ea233b393abb12a800213e03f12b0b963f3e (diff)
downloadsphinx-git-d414471eed13828421fd5a3b86ac55cd15e2125a.tar.gz
Pass exceptions directly to docutils reporter
The docutils reporter supports an exception as an argument. It is converted to a string internally.
Diffstat (limited to 'sphinx/directives/patches.py')
-rw-r--r--sphinx/directives/patches.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/patches.py b/sphinx/directives/patches.py
index 9413c9385..733e4e4b9 100644
--- a/sphinx/directives/patches.py
+++ b/sphinx/directives/patches.py
@@ -162,7 +162,7 @@ class MathDirective(SphinxDirective):
self.state.document.note_explicit_target(target)
ret.insert(0, target)
except UserWarning as exc:
- self.state_machine.reporter.warning(exc.args[0], line=self.lineno)
+ self.state_machine.reporter.warning(exc, line=self.lineno)
def setup(app):