Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-07 19:38:45 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-07 19:38:45 +0300
commit4153ee0d9d33074b09c7ee8b241dc1d61eb3f32f (patch)
tree11aa1a35e24ef1b5fec5851a5798efa7eb54f716 /sphinx/errors.py
parentf1d2a7ffaa1689e3e20c846b88969c2aadd284be (diff)
Fix Sphinx crashes on parallel build with an extension which raises unserializable exception
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r--sphinx/errors.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py
index 5fb77a135..01f92a3cf 100644
--- a/sphinx/errors.py
+++ b/sphinx/errors.py
@@ -71,10 +71,9 @@ class SphinxParallelError(SphinxError):
category = 'Sphinx parallel build error'
- def __init__(self, orig_exc, traceback):
- self.orig_exc = orig_exc
+ def __init__(self, message, traceback):
+ self.message = message
self.traceback = traceback
def __str__(self):
- return traceback.format_exception_only(
- self.orig_exc.__class__, self.orig_exc)[0].strip()
+ return self.message