summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alarmpy/alarmpy.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/alarmpy/alarmpy.py b/alarmpy/alarmpy.py
index 3d2b45b..ad988af 100644
--- a/alarmpy/alarmpy.py
+++ b/alarmpy/alarmpy.py
@@ -119,10 +119,9 @@ class Alarm:
"API endpoint has denied access. This might be due to geolocation limitations, please try running from an Israeli-based IP or proxy."
)
exit(1)
+ return res.content
except requests.Timeout as e:
raise Exception("HTTP request timed out") from e
-
- return res.content
def parse(self, res):
if not res: