summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-09-21 18:43:49 +0200
committerGeorg Brandl <georg@python.org>2011-09-21 18:43:49 +0200
commitd31d4e5e19b104da8cabefd6a4f1802a80a9caf2 (patch)
tree031b46012f59d5ca519bd65e034f923c7269dcf3
parent71f24e23d7eca6a7a571f50fd060b3d36a056708 (diff)
downloadsphinx-d31d4e5e19b104da8cabefd6a4f1802a80a9caf2.tar.gz
#316: broader range of exceptions to catch while communicating with subprocess.
-rw-r--r--sphinx/ext/graphviz.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/graphviz.py b/sphinx/ext/graphviz.py
index eedcf2b9..1bb70d02 100644
--- a/sphinx/ext/graphviz.py
+++ b/sphinx/ext/graphviz.py
@@ -137,7 +137,7 @@ def render_dot(self, code, options, format, prefix='graphviz'):
# Graphviz may close standard input when an error occurs,
# resulting in a broken pipe on communicate()
stdout, stderr = p.communicate(code)
- except OSError, err:
+ except (OSError, IOError), err:
if err.errno != EPIPE:
raise
# in this case, read the standard output and standard error streams