Skip to content

Fix for Empty except#37

Merged
RobertBlackhart merged 1 commit into
mainfrom
finding-autofix-2b751eea
Apr 14, 2026
Merged

Fix for Empty except#37
RobertBlackhart merged 1 commit into
mainfrom
finding-autofix-2b751eea

Conversation

@RobertBlackhart
Copy link
Copy Markdown
Collaborator

The best fix is to keep the existing behavior (do not fail startup when history cannot be read) but add an explanatory comment inside the except IOError: block so the intentional swallow is documented.

In recline/repl/shell.py, update the track_command_history function around lines 242–243:

  • Keep except IOError: as-is.
  • Replace bare pass with a brief comment explaining expected scenarios (e.g., history file missing/unreadable on first run) and then pass.

No imports, new methods, or dependency changes are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@RobertBlackhart RobertBlackhart marked this pull request as ready for review April 14, 2026 03:55
@RobertBlackhart RobertBlackhart merged commit 855e512 into main Apr 14, 2026
9 checks passed
@RobertBlackhart RobertBlackhart deleted the finding-autofix-2b751eea branch April 14, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant