<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/sphinx-git.git/tests/test_errors.py, branch 7727_autosummary_PycodeError</title>
<subtitle>github.com: sphinx-doc/sphinx.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/sphinx-git.git/'/>
<entry>
<title>Fix AttributeError in ExtensionError</title>
<updated>2018-09-09T18:50:56+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2018-09-08T17:20:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/sphinx-git.git/commit/?id=9d6deec4ca2f95460ef62b54b7b42f589ef3351e'/>
<id>9d6deec4ca2f95460ef62b54b7b42f589ef3351e</id>
<content type='text'>
In Python 3, the attribute BaseException.message doesn't exist.

$ python3
&gt;&gt;&gt; from sphinx.errors import ExtensionError
&gt;&gt;&gt; e = ExtensionError('foo')
&gt;&gt;&gt; repr(e)
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "sphinx/sphinx/errors.py", line 65, in __repr__
    return '%s(%r)' % (self.__class__.__name__, self.message)
AttributeError: 'ExtensionError' object has no attribute 'message'
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Python 3, the attribute BaseException.message doesn't exist.

$ python3
&gt;&gt;&gt; from sphinx.errors import ExtensionError
&gt;&gt;&gt; e = ExtensionError('foo')
&gt;&gt;&gt; repr(e)
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "sphinx/sphinx/errors.py", line 65, in __repr__
    return '%s(%r)' % (self.__class__.__name__, self.message)
AttributeError: 'ExtensionError' object has no attribute 'message'
</pre>
</div>
</content>
</entry>
</feed>
