We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0e4298 commit c888d11Copy full SHA for c888d11
server_python_scripts/blocks_base_classes/opmode.py
@@ -8,7 +8,7 @@ def start(self) -> None:
8
self.robot.start()
9
def loop(self) -> None:
10
# Call steps method if it exists in the derived class
11
- if hasattr(self, 'steps'):
+ if hasattr(self, 'steps') and callable(self.steps):
12
self.steps()
13
self.robot.update()
14
def stop(self) -> None:
0 commit comments