Skip to content

Commit

Permalink
[star] don't log empty responses
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwierenga committed Sep 18, 2024
1 parent 6cf2843 commit e5bb249
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pylabrobot/liquid_handling/backends/hamilton/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,16 @@ def _continuously_read(self) -> None:
except TimeoutError:
continue

logger.info("Received response: %s", resp)
if resp == "":
continue

logger.debug("Received response: %s", resp)

# Parse response.
try:
response_id = self.get_id_from_fw_response(resp)
except ValueError as e:
if resp != "":
logger.warning("Could not parse response: %s (%s)", resp, e)
logger.warning("Could not parse response: %s (%s)", resp, e)
continue

for id_, (loop, fut, cmd, timeout_time) in self._waiting_tasks.items():
Expand Down

0 comments on commit e5bb249

Please sign in to comment.