Closed lgarber-akamai closed 1 month ago
This pull request resolves a bug that would cause the following error when attempting to create an EventError with a None message value:
None
TypeError: object of type 'NoneType' has no len()
This situations is very uncommon but it did cause issues when testing against a non-production environment.
The following test steps assume you have pulled down this PR locally and run make install.
make install
make testunit
from linode_api4.polling import EventError print(EventError(123, None))
Event 123 failed
📝 Description
This pull request resolves a bug that would cause the following error when attempting to create an EventError with a
None
message value:This situations is very uncommon but it did cause issues when testing against a non-production environment.
✔️ How to Test
The following test steps assume you have pulled down this PR locally and run
make install
.Unit Testing
Manual Testing