diff options
author | Nayil Mukhametshin <66028747+nlscc@users.noreply.github.com> | 2020-08-01 15:18:04 +0200 |
---|---|---|
committer | Nayil Mukhametshin <66028747+nlscc@users.noreply.github.com> | 2020-08-01 15:18:04 +0200 |
commit | ed041e026dc51e7d5598332880c543c5afbc5884 (patch) | |
tree | 69193dedb6aecec86e909f45a453716b5bf70f2c | |
parent | add support for saving to directories (diff) | |
download | samloader-ed041e026dc51e7d5598332880c543c5afbc5884.tar samloader-ed041e026dc51e7d5598332880c543c5afbc5884.tar.gz samloader-ed041e026dc51e7d5598332880c543c5afbc5884.tar.bz2 samloader-ed041e026dc51e7d5598332880c543c5afbc5884.tar.lz samloader-ed041e026dc51e7d5598332880c543c5afbc5884.tar.xz samloader-ed041e026dc51e7d5598332880c543c5afbc5884.tar.zst samloader-ed041e026dc51e7d5598332880c543c5afbc5884.zip |
-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("/") |