]> granicus.if.org Git - python/commitdiff
Catch only ImportError
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 31 Oct 2002 13:39:33 +0000 (13:39 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 31 Oct 2002 13:39:33 +0000 (13:39 +0000)
Lib/distutils/dist.py

index c71cb36a94506990f805e8cd8e0ee38b7885a06d..dbeeb8b1dcdd73efb537400b27acbc9eb9634cf7 100644 (file)
@@ -15,7 +15,7 @@ from copy import copy
 
 try:
     import warnings
-except:
+except ImportError:
     warnings = None
 
 from distutils.errors import *