1. Tibor Tóth
  2. sphinx

Commits

Georg Brandl  committed 4856395

#316: broader range of exceptions to catch while communicating with subprocess.

  • Participants
  • Parent commits cf41b9f
  • Branches default

Comments (0)

Files changed (1)

File sphinx/ext/graphviz.py

View file
  • Ignore whitespace
         # 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