Skip to content

Conversation

@MillhioreBT
Copy link
Collaborator

No description provided.

@MillhioreBT MillhioreBT requested a review from Copilot September 17, 2025 16:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes error handling in the ReadWriteMemory library by properly raising exceptions instead of just creating them. The change addresses a bug where ReadWriteMemoryError instances were being created but not raised, causing errors to be silently ignored.

  • Adds raise keyword before ReadWriteMemoryError instantiation in all exception handling blocks
  • Fixes error propagation in 8 memory operation methods (read, write, and their variants)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

error = {'msg': str(error), 'Handle': self.handle, 'PID': self.pid,
'Name': self.name, 'ErrorCode': self.error_code}
ReadWriteMemoryError(error)
raise ReadWriteMemoryError(error)
Copy link

Copilot AI Sep 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ReadWriteMemoryError constructor appears to expect a string message, but a dictionary is being passed. This will likely result in an unhelpful error representation. Consider passing error['msg'] instead of the entire error dictionary, or update the exception class to properly handle dictionary input.

Copilot uses AI. Check for mistakes.
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