1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-09-19 22:33:25 +01:00

Raise RequestException instead of printing to console.

This commit is contained in:
Markus Birth 2017-09-01 17:58:36 +02:00
parent d864a2002a
commit 3dd99f9580

View File

@ -85,9 +85,7 @@ class FotaCheck:
if req.status_code == 200:
return req.text
else:
print("CHECK: " + repr(req))
print(repr(req.headers))
print(repr(req.text))
req.raise_for_status()
raise SystemExit
@staticmethod