Skip to content

Commit

Permalink
Log the error comming from RobotException
Browse files Browse the repository at this point in the history
  • Loading branch information
tsundvoll committed Oct 7, 2022
1 parent 44fc3ca commit 16b3ed0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/isar/state_machine/states/initiate_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,13 @@ def _run(self):
)
transition = self.state_machine.step_infeasible
break
except RobotException:
except RobotException as e:
self.initiate_step_thread = None
self.initiate_step_failure_counter += 1
self.logger.info(
self.logger.warning(
f"Initiating step failed #: "
f"{str(self.initiate_step_failure_counter)}"
f"{e}"
)

if (
Expand Down

0 comments on commit 16b3ed0

Please sign in to comment.