Skip to content

Commit

Permalink
Do not retry in FPS.update_firmware_version() if n_positioners is None
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 10, 2023
1 parent 1402581 commit 8073e13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

### 🔧 Fixed

* Only retry `FPS.update_firmware_version()` if `n_positioners` is not `None`. Otherwise a time out is expected.


## 1.3.1 - January 10, 2023

### ✨ Improved
Expand Down
2 changes: 1 addition & 1 deletion python/jaeger/fps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ async def update_firmware_version(
log.error("Failed retrieving firmware version.")
return False

if get_fw_command.status.timed_out and not is_retry:
if get_fw_command.status.timed_out and n_positioners and not is_retry:
log.warning("GET_FIRMWARE_VERSION timed out. Retrying.")
return await self.update_firmware_version(positioner_ids, is_retry=True)

Expand Down

0 comments on commit 8073e13

Please sign in to comment.