mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Catch only ImportError
This commit is contained in:
parent
0ae2981dec
commit
ccf4e421b8
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ from copy import copy
|
|||
|
||||
try:
|
||||
import warnings
|
||||
except:
|
||||
except ImportError:
|
||||
warnings = None
|
||||
|
||||
from distutils.errors import *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue