Skip to content

Commit

Permalink
clean up if fail
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Oct 29, 2024
1 parent 7090fc9 commit 216cc0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pioreactor/background_jobs/od_reading.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ def start_ir_led(self) -> None:
verbose=False,
)
if not r:
self.clean_up()
raise OSError("IR LED could not be started. Stopping OD reading.")

return
Expand Down

0 comments on commit 216cc0f

Please sign in to comment.