Skip to content

Commit

Permalink
Ignore failing to awake when already waking up
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Feb 22, 2024
1 parent c51c9e2 commit c922a1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/isar_exr/api/energy_robotics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import Any, Dict, Optional

from gql.dsl import DSLMutation, DSLQuery, DSLSchema, DSLVariableDefinitions, dsl_gql
from gql.transport.exceptions import TransportQueryError
from robot_interface.models.exceptions.robot_exceptions import (
RobotAPIException,
RobotCommunicationException,
Expand Down Expand Up @@ -454,6 +455,8 @@ def wake_up_robot(
dsl_gql(wake_up_robot_mutation), params
)
)
except TransportQueryError as e:
self.logger.warning(f"Could not wake up robot as it is already in the process of waking up: {e}")
except Exception:
message: str = "Could not wake up robot"
self.logger.error(message)
Expand Down

0 comments on commit c922a1d

Please sign in to comment.