Skip to content

Commit

Permalink
ValueError is the exception that needs suppressing. Fixes #243.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 11, 2022
1 parent 4f4f6b8 commit b0968d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion importlib_resources/tests/update-zips.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def generate(suffix):

def walk(datapath):
for dirpath, dirnames, filenames in os.walk(datapath):
with contextlib.suppress(KeyError):
with contextlib.suppress(ValueError):
dirnames.remove('__pycache__')
for filename in filenames:
res = pathlib.Path(dirpath) / filename
Expand Down

0 comments on commit b0968d5

Please sign in to comment.