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:
parent
d864a2002a
commit
3dd99f9580
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user