Skip to content

Commit 855e512

Browse files
Fix for Empty except (#37)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent e36476c commit 855e512

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

recline/repl/shell.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ def track_command_history(filename: str) -> None:
240240
# default history len is -1 (infinite), which may grow unruly
241241
readline.set_history_length(1000)
242242
except IOError:
243+
# Missing/unreadable history file is non-fatal (e.g., first run); continue.
243244
pass
244245
atexit.register(readline.write_history_file, filename)
245246

0 commit comments

Comments
 (0)