summaryrefslogtreecommitdiff
path: root/sphinx/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/environment.py')
-rw-r--r--sphinx/environment.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/sphinx/environment.py b/sphinx/environment.py
index 09f76bf2..c5726e29 100644
--- a/sphinx/environment.py
+++ b/sphinx/environment.py
@@ -611,11 +611,8 @@ class BuildEnvironment:
pub.process_programmatic_settings(None, self.settings, None)
pub.set_source(None, src_path.encode(fs_encoding))
pub.set_destination(None, None)
- try:
- pub.publish()
- doctree = pub.document
- except UnicodeError, err:
- raise SphinxError(str(err))
+ pub.publish()
+ doctree = pub.document
# post-processing
self.filter_messages(doctree)