summaryrefslogtreecommitdiffstats
path: root/samloader/versionfetch.py
diff options
context:
space:
mode:
Diffstat (limited to 'samloader/versionfetch.py')
-rw-r--r--samloader/versionfetch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/samloader/versionfetch.py b/samloader/versionfetch.py
index 98200b8..d173486 100644
--- a/samloader/versionfetch.py
+++ b/samloader/versionfetch.py
@@ -11,6 +11,8 @@ def getlatestver(region, model):
r.raise_for_status()
root = ET.fromstring(r.text)
vercode = root.find("./firmware/version/latest").text
+ if vercode is None:
+ raise Exception("No latest firmware found")
vc = vercode.split("/")
if len(vc) == 3:
vc.append(vc[0])