You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sphinx-build is invoked with -W, then following mistakes in source cause sphinx to crash instead of displaying nice error message:
Missing empty line:
.. sourcecode:: python
for i in range(a,b):
# käsud
Too short section underline:
Lisanäited
------
Stacktrace:
Warning, treated as error:
Traceback (most recent call last):
File "c:\python27\scripts\sphinx-build-script.py", line 8, in
<module>
load_entry_point('Sphinx==1.0.7', 'console_scripts', 'sphinx-
build')()
File "c:\python27\lib\site-packages\sphinx-1.0.7-py2.7.egg\sphinx
\__init__.py"
, line 67, in main
return cmdline.main(argv)
File "c:\python27\lib\site-packages\sphinx-1.0.7-py2.7.egg\sphinx
\cmdline.py",
line 212, in main
print >>error, err
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in
position 202
: ordinal not in range(128)
When sphinx-build is invoked with -W, then following mistakes in source cause sphinx to crash instead of displaying nice error message:
Missing empty line:
Too short section underline:
Stacktrace:
Workaround: change line 212 in cmdline.py from
to
If sphinx-build is invoked without -W, then error message is displayed fine.
The text was updated successfully, but these errors were encountered: