From 1865939fc1403b1684db2ecd6d20882e5e2ee7e8 Mon Sep 17 00:00:00 2001 From: Nicholas Smith Date: Thu, 16 Feb 2023 10:51:45 -0600 Subject: [PATCH] Fix timeout bailout timeout was not correctly exiting the get_response loop, so, a RuntimeError has been added to the else check. --- atcom/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/atcom/cli.py b/atcom/cli.py index dbba6ba..b4dc6f9 100755 --- a/atcom/cli.py +++ b/atcom/cli.py @@ -77,6 +77,7 @@ def get_response(self, timeout): else: self.logger.error("Timeout, couldn't get response") + raise RuntimeError("Timeout, couldn't get response") if "OK" in response or "ERROR" in response: if self.find_in_response: