diff --git a/src/isar/state_machine/states/idle.py b/src/isar/state_machine/states/idle.py index d6b24daf..39fe9837 100644 --- a/src/isar/state_machine/states/idle.py +++ b/src/isar/state_machine/states/idle.py @@ -71,7 +71,7 @@ def _run(self) -> None: time.sleep(self.state_machine.sleep_time) continue - except (RobotException,) as e: + except RobotException as e: self.logger.error( f"Failed to get robot status because: {e.error_description}" ) diff --git a/src/isar/state_machine/states/offline.py b/src/isar/state_machine/states/offline.py index 88aa39ff..68213115 100644 --- a/src/isar/state_machine/states/offline.py +++ b/src/isar/state_machine/states/offline.py @@ -48,7 +48,7 @@ def _run(self) -> None: time.sleep(self.state_machine.sleep_time) continue - except (RobotException,) as e: + except RobotException as e: self.logger.error( f"Failed to get robot status because: {e.error_description}" )