Skip to content

Commit 54462ed

Browse files
committed
Parens around exceptions needed in 3.13
1 parent 46f0390 commit 54462ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def register_readline():
573573
def write_history():
574574
try:
575575
readline_module.write_history_file(history)
576-
except FileNotFoundError, PermissionError:
576+
except (FileNotFoundError, PermissionError):
577577
# home directory does not exist or is not writable
578578
# https://bugs.python.org/issue19891
579579
pass

0 commit comments

Comments
 (0)