summaryrefslogtreecommitdiff
path: root/sphinx/util
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
commit80afe4fb9ff0bf9a50a896ca0b262dfee0d04635 (patch)
tree5d8fcda0c50f4e6f174c4627eaf3a8bf5a56e610 /sphinx/util
parentfe9087e64682c2065f9fdb263f6a6dede725649c (diff)
downloadsphinx-80afe4fb9ff0bf9a50a896ca0b262dfee0d04635.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')
-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 487a5afc..b7a12cda 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
#