summaryrefslogtreecommitdiff
path: root/sphinx/util/osutil.py
diff options
context:
space:
mode:
authorBenoit Allard <benoit@aeteurope.nl>2011-07-14 16:57:01 +0200
committerBenoit Allard <benoit@aeteurope.nl>2011-07-14 16:57:01 +0200
commit9350b3b46b832279afdf99cf5452de5088e91f3a (patch)
tree5d8fcda0c50f4e6f174c4627eaf3a8bf5a56e610 /sphinx/util/osutil.py
parentdb733f40fce31f9255d17a6a824a55d4ec1439c2 (diff)
downloadsphinx-git-9350b3b46b832279afdf99cf5452de5088e91f3a.tar.gz
graphviz: also catch IOError with Errno 22 (invalid parameter)
This happen on Python2.7 and Graphviz version 2.12 (Mon Dec 4 22:04:37 UTC 2006) on Windows when a not recognized renderer type is asked.
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r--sphinx/util/osutil.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py
index 487a5afcd..b7a12cda9 100644
--- a/sphinx/util/osutil.py
+++ b/sphinx/util/osutil.py
@@ -21,6 +21,7 @@ from os import path
EEXIST = getattr(errno, 'EEXIST', 0)
ENOENT = getattr(errno, 'ENOENT', 0)
EPIPE = getattr(errno, 'EPIPE', 0)
+EINVAL = getattr(errno, 'EINVAL', 0)
# SEP separates path elements in the canonical file names
#