diff options
| author | Yuval Adam <_@yuv.al> | 2022-04-21 08:42:16 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2022-04-21 08:42:16 +0300 |
| commit | 25654c2082041bb68cad70a73338b46fabeddc76 (patch) | |
| tree | 8f0753486ddb91bd0bdbb69ca5f21fcd997f87b3 | |
| parent | 59a04dc65db6a10a165cfb4e270c0af591ed9c66 (diff) | |
Cleanup fetch()
| -rw-r--r-- | alarmpy/alarmpy.py | 3 |
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: |
