Skip to content

Commit f0fb424

Browse files
committed
keep the correct guard!
1 parent b554b2c commit f0fb424

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/importlib/_bootstrap_external.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ def set_data(self, path, data, *, _mode=0o666):
12671267
return
12681268
try:
12691269
_write_atomic(path, data, _mode)
1270-
except OSError as exc:
1270+
except (OSError, ValueError) as exc:
12711271
# Same as above: just don't write the bytecode.
12721272
_bootstrap._verbose_message('could not create {!r}: {!r}', path,
12731273
exc)

0 commit comments

Comments
 (0)