diff options
| author | Georg Brandl <georg@python.org> | 2014-01-19 18:43:26 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2014-01-19 18:43:26 +0100 |
| commit | 8efb0ee600c010040ad3b9a11e7f36ef10d079b9 (patch) | |
| tree | 31ebe373c884f1e73143d4bdd0670054a583a741 /sphinx/environment.py | |
| parent | db7406902d89352524f3ee43eb5a095e1a7bedc3 (diff) | |
| download | sphinx-8efb0ee600c010040ad3b9a11e7f36ef10d079b9.tar.gz | |
Closes #811: dont eat up UnicodeErrors during reading anymore
Diffstat (limited to 'sphinx/environment.py')
| -rw-r--r-- | sphinx/environment.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sphinx/environment.py b/sphinx/environment.py index a319ef3c..8e3a10bb 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -614,11 +614,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) |
