summaryrefslogtreecommitdiff
path: root/sphinx/builders/latex.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-05-28 22:37:54 +0200
committerGeorg Brandl <georg@python.org>2010-05-28 22:37:54 +0200
commitf61fbad8ac2bcc45e805cfd918db01ebf1230827 (patch)
treee46cb7252a66332430b96f0220878e60fb878227 /sphinx/builders/latex.py
parentf8f2dcd4e9234ded1ed7b34db15491e544e0850b (diff)
downloadsphinx-f61fbad8ac2bcc45e805cfd918db01ebf1230827.tar.gz
#432: Fix UnicodeErrors while building LaTeX in translated locale; do not swallow UnicodeError as a warning.
Diffstat (limited to 'sphinx/builders/latex.py')
-rw-r--r--sphinx/builders/latex.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/sphinx/builders/latex.py b/sphinx/builders/latex.py
index 0481b308..1fbdbb78 100644
--- a/sphinx/builders/latex.py
+++ b/sphinx/builders/latex.py
@@ -105,13 +105,7 @@ class LaTeXBuilder(Builder):
doctree.settings.title = title
doctree.settings.docname = docname
doctree.settings.docclass = docclass
- try:
- docwriter.write(doctree, destination)
- except UnicodeError:
- self.warn("a Unicode error occurred when writing the output. "
- "Please make sure all config values that contain "
- "non-ASCII content are Unicode strings.")
- return
+ docwriter.write(doctree, destination)
self.info("done")
def assemble_doctree(self, indexfile, toctree_only, appendices):