Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modbustk error handler doesn't include .message #3178

Merged
merged 5 commits into from
May 22, 2024

Conversation

craig8
Copy link
Contributor

@craig8 craig8 commented May 1, 2024

Description

This pull request fixes the error handler that relies on .message being set on Modbustk Exception handler. The Modbustk exception handler does not set message so this handler never would give an accurate error message.

@craig8 craig8 requested a review from davidraker May 1, 2024 15:13
* Update readthedocs requirements.txt

* Update conf.py

* Update requirements_demo.txt

Add missing pandas requirement for demo

* work around for issue VOLTTRON#3154

* Fix for security issue VOLTTRON#3168 (VOLTTRON#3169)

* Fix for security issue VOLTTRON#3168

* handling clean up errors in test

* testing group commands in different test module

* moved group and role test to different module

* moved group and role test to different module

* Added a cache for agent names since platform start

* Fixes process overload from file events

* fixed issue with variable definition.

* Remove PersistentDict from web-user.json file.

* Update admin_endpoints.py

Handle behavior of removing PersistentDict

* Update version to 9.0.1

---------

Co-authored-by: Chandrika Sivaramakrishnan <chandrika@pnnl.gov>
Co-authored-by: Chandrika <schandrika@users.noreply.github.com>
Co-authored-by: Andrew Rodgers <andrew@aceiotsolutions.com>
@craig8 craig8 changed the base branch from releases/9.0.1 to develop May 10, 2024 17:14
@craig8
Copy link
Contributor Author

craig8 commented May 15, 2024

@davidraker please look at this

Copy link
Contributor

@davidraker davidraker left a comment

Choose a reason for hiding this comment

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

This checks out, and looks correct. My only question is why we are detecting the exception type in an if statement instead of adding a separate except blocks for ModbusError and AttributeError? I don't think there is a functional difference, but it would be a little cleaner, I think?

@craig8 craig8 merged commit 02533d6 into VOLTTRON:develop May 22, 2024
14 of 15 checks passed
@craig8 craig8 deleted the fix-modbus-tk-error-handler branch May 22, 2024 20:57
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.

2 participants