Skip to content

Commit

Permalink
Update Lib/site.py
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev authored Jul 13, 2024
1 parent ae0999e commit 4825ba9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4825ba9

Please sign in to comment.