Skip to content

Commit 16c22b9

Browse files
committed
use a (safe) bare except
1 parent b4619f0 commit 16c22b9

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
@@ -212,7 +212,7 @@ def _write_atomic(path, data, mode=0o666):
212212
with _io.FileIO(fd, 'wb') as file:
213213
file.write(data)
214214
_os.replace(path_tmp, path)
215-
except OSError:
215+
except:
216216
try:
217217
_os.unlink(path_tmp)
218218
except OSError:

0 commit comments

Comments
 (0)