Skip to content

Commit

Permalink
add workaround for #52
Browse files Browse the repository at this point in the history
this will suppress the false positiv while reviving a negativ response on querying for more error messages
  • Loading branch information
drunsinn committed Nov 28, 2023
1 parent 834899a commit 9138c43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyLSV2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ def _send_recive(
raise LSV2ProtocolException("unknown response received")

if self._llcom.last_response is lc.RSP.T_ER:
if self.last_error.e_code is lc.LSV2StatusCode.T_ER_NO_NEXT_ERROR:
# workaround since querying for error messages will also return an error state
return True

self._logger.info(
"an error was received after the last transmission, %s '%s'",
self.last_error,
Expand Down

0 comments on commit 9138c43

Please sign in to comment.