diff options
-rw-r--r-- | samloader/versionfetch.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samloader/versionfetch.py b/samloader/versionfetch.py index a9d2437..800a297 100644 --- a/samloader/versionfetch.py +++ b/samloader/versionfetch.py @@ -8,6 +8,7 @@ import requests def getlatestver(region, model): r = requests.get("http://fota-cloud-dn.ospserver.net/firmware/" + region + "/" + model + "/version.xml") + r.raise_for_status() root = ET.fromstring(r.text) vercode = root.find("./firmware/version/latest").text vc = vercode.split("/") |