Skip to content

Commit

Permalink
add log message for empty response
Browse files Browse the repository at this point in the history
  • Loading branch information
jblance authored Oct 23, 2024
1 parent 111cdce commit 1e5d3a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions powermon/ports/serialport.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ async def _serial_read_until_done(self, full_command):
# maybe port has failed
await self.disconnect()
await self.connect()
log.info("response was empty")
raise InvalidResponse("Response was empty")
return response_line

0 comments on commit 1e5d3a6

Please sign in to comment.