summaryrefslogtreecommitdiff
path: root/sphinx/builders/changes.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-09-21 16:52:41 +0200
committerGeorg Brandl <georg@python.org>2014-09-21 16:52:41 +0200
commit675ee673d9e982a4b975d36630ff3af5ddceccd6 (patch)
treed9d8d787a291c5fe4bfb7601ab86d12f144abcd6 /sphinx/builders/changes.py
parent30ea7238214a183ccf01c5d6faad7d518c56bbf3 (diff)
downloadsphinx-675ee673d9e982a4b975d36630ff3af5ddceccd6.tar.gz
Fix a few missing Unicode/bytes filename problems.
Diffstat (limited to 'sphinx/builders/changes.py')
-rw-r--r--sphinx/builders/changes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sphinx/builders/changes.py b/sphinx/builders/changes.py
index aa947c96..069d0ce6 100644
--- a/sphinx/builders/changes.py
+++ b/sphinx/builders/changes.py
@@ -130,6 +130,9 @@ class ChangesBuilder(Builder):
self.env.config.source_encoding)
try:
lines = f.readlines()
+ except UnicodeDecodeError:
+ self.warn('could not read %r for changelog creation' % docname)
+ continue
finally:
f.close()
targetfn = path.join(self.outdir, 'rst', os_path(docname)) + '.html'