1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-11-10 06:16:46 +00: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: if req.status_code == 200:
return req.text return req.text
else: else:
print("CHECK: " + repr(req)) req.raise_for_status()
print(repr(req.headers))
print(repr(req.text))
raise SystemExit raise SystemExit
@staticmethod @staticmethod