From: Andrew M. Kuchling Date: Thu, 31 Oct 2002 13:39:33 +0000 (+0000) Subject: Catch only ImportError X-Git-Tag: v2.3c1~3631 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ccf4e421b829ce69eb62806fdd77eb71249713dd;p=thirdparty%2FPython%2Fcpython.git Catch only ImportError --- diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index c71cb36a9450..dbeeb8b1dcdd 100644 --- a/Lib/distutils/dist.py +++ b/Lib/distutils/dist.py @@ -15,7 +15,7 @@ from copy import copy try: import warnings -except: +except ImportError: warnings = None from distutils.errors import *