Fix OSError.__str__ to not display 'None' for filename#6266
Fix OSError.__str__ to not display 'None' for filename#6266youknowone merged 1 commit intoRustPython:mainfrom
Conversation
WalkthroughAdded a None-check guard in PyOSError.str to safely handle cases where the filename is None. When filename is None, the method now returns a simplified error message format instead of attempting to access filename2, preventing potential access errors. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)vm/src/exceptions.rs (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit