From 4825ba92fb2178832b3334b1a2e04cb3184ebb0d Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Sat, 13 Jul 2024 05:42:34 +0300 Subject: [PATCH] Update Lib/site.py --- Lib/site.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/site.py b/Lib/site.py index fcfd2fe7bbe30c..d21473fb8766eb 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -532,8 +532,7 @@ def register_readline(): def write_history(): try: my_readline.write_history_file(history) - except (FileNotFoundError, PermissionError, - _pyrepl.unix_console.InvalidTerminal): + except (FileNotFoundError, PermissionError): # home directory does not exist or is not writable # https://bugs.python.org/issue19891 # or terminal doesn't have the required capability