summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNayil Mukhametshin <66028747+nlscc@users.noreply.github.com>2020-09-30 22:28:34 +0200
committerNayil Mukhametshin <66028747+nlscc@users.noreply.github.com>2020-09-30 22:28:34 +0200
commit01b04171f68d8e4b47d1e5cc03d45f7b47173b13 (patch)
tree1eee3a8f2cfdb1caf8f65c17ed4a64fdf33a60e4
parentadd better error handling, fix #9 (diff)
downloadsamloader-01b04171f68d8e4b47d1e5cc03d45f7b47173b13.tar
samloader-01b04171f68d8e4b47d1e5cc03d45f7b47173b13.tar.gz
samloader-01b04171f68d8e4b47d1e5cc03d45f7b47173b13.tar.bz2
samloader-01b04171f68d8e4b47d1e5cc03d45f7b47173b13.tar.lz
samloader-01b04171f68d8e4b47d1e5cc03d45f7b47173b13.tar.xz
samloader-01b04171f68d8e4b47d1e5cc03d45f7b47173b13.tar.zst
samloader-01b04171f68d8e4b47d1e5cc03d45f7b47173b13.zip
-rw-r--r--samloader/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/samloader/main.py b/samloader/main.py
index f828208..d1c37f5 100644
--- a/samloader/main.py
+++ b/samloader/main.py
@@ -16,7 +16,7 @@ def getbinaryfile(client, fw, region, model):
req = request.binaryinform(fw, region, model, client.nonce)
resp = client.makereq("NF_DownloadBinaryInform.do", req)
root = ET.fromstring(resp)
- status = root.find("./FUSBody/Results/Status").text
+ status = int(root.find("./FUSBody/Results/Status").text)
if status != 200:
raise Exception("DownloadBinaryInform returned {}, firmware could not be found?".format(status))
filename = root.find("./FUSBody/Put/BINARY_NAME/Data").text