BerkeleyAutomation / FogROS2

An Adaptive and Extensible Platform for Cloud and Fog Robotics Using ROS 2
https://berkeleyautomation.github.io/FogROS2
Apache License 2.0
171 stars 29 forks source link

`assert` only for logic errors, not configuration or user errors #69

Closed jeffi closed 2 years ago

jeffi commented 2 years ago

Describe the bug There appear to be a few cases where we use assert to test if a configuration is valid. These should be changed to something that generates a message that indicates that it is user fixable. assert implies that it there is a code logic error--something that should never happen, regardless of configuration.

To Reproduce grep through code for assert (there are a few in aws.py). Assess if they're logic errors or user/configuration errors and update appropriately.

Expected behavior Not possible for a user errors to generate an assert.

mjd3 commented 2 years ago

Fixed by #75