From c17ee393cc167bca673c17ed3d2d3c0d1adf966e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 27 Jun 2024 03:17:15 +0200 Subject: [PATCH] Make pylint happy 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. --- qrexec/tools/qrexec_policy_exec.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qrexec/tools/qrexec_policy_exec.py b/qrexec/tools/qrexec_policy_exec.py index 807c1408..cabd9de9 100644 --- a/qrexec/tools/qrexec_policy_exec.py +++ b/qrexec/tools/qrexec_policy_exec.py @@ -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"