Skip to content

Commit c91eb16

Browse files
committed
Need to catch ImportError and AttributeError.
1 parent a4768b4 commit c91eb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

importlib_metadata/tests/test_zip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from importlib import resources
1111
getattr(resources, 'files')
1212
getattr(resources, 'as_file')
13-
except AttributeError:
13+
except (ImportError, AttributeError):
1414
import importlib_resources as resources
1515

1616
try:

0 commit comments

Comments
 (0)