Skip to content

Handle error num passed as a string in platform.vip.agent.errors. - #3229

Open
davidraker wants to merge 1 commit into
VOLTTRON:developfrom
davidraker:error_handling_fix
Open

Handle error num passed as a string in platform.vip.agent.errors.#3229
davidraker wants to merge 1 commit into
VOLTTRON:developfrom
davidraker:error_handling_fix

Conversation

@davidraker

Copy link
Copy Markdown
Contributor

This pull request makes a small update to the error handling logic in volttron/platform/vip/agent/errors.py. The change improves flexibility by allowing the from_errno method to accept error numbers as strings prefixed with 'errno.', in addition to numeric values.

  • Enhanced from_errno to accept error numbers as strings like 'errno.EHOSTUNREACH', converting them to the corresponding errno constant if necessary.

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