diff options
Diffstat (limited to 'Lib/distutils/command/check.py')
-rw-r--r-- | Lib/distutils/command/check.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/command/check.py b/Lib/distutils/command/check.py index d164f3f..5dd73b0 100644 --- a/Lib/distutils/command/check.py +++ b/Lib/distutils/command/check.py @@ -27,8 +27,9 @@ try: self.messages.append((level, message, children, kwargs)) HAS_DOCUTILS = True -except ImportError: - # docutils is not installed +except Exception: + # Catch all exceptions because exceptions besides ImportError probably + # indicate that docutils is not ported to Py3k. HAS_DOCUTILS = False class check(Command): |