Team997Coders / pyswerve_2024

0 stars 0 forks source link

handle exceptions #3

Open KiraA-R opened 5 months ago

KiraA-R commented 5 months ago

ignore exceptions during competitions

jamesra commented 5 months ago

Magic bot has a nice context manager to handle these exceptions built-in. We should copy it.

Essentially copy that source code into a new file, copy the function and the function it depends on into that file, and then in our robot wrap each failure point in a "with" statement. I can help someone through this. It is low difficulty.

jamesra commented 5 months ago

Add the contexrt manager then pass it off with a lesson