Skip to content

Commit

Permalink
Make pylint happy
Browse files Browse the repository at this point in the history
It complains about unreachable code - it is an assert about this line
being unreachable (if it is reached, it means there is a bug somewhere).
Since it's critical that this function do not return in the case of
invalid response, keep the assert.
  • Loading branch information
marmarek committed Jun 27, 2024
1 parent f48ac4d commit c17ee39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qrexec/tools/qrexec_policy_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ async def execute(self) -> str:
ask_response,
)
self.handle_invalid_response()
# pylint: disable=unreachable
assert False, "handle_invalid_response should throw"


Expand Down

0 comments on commit c17ee39

Please sign in to comment.