From 8c614765994ae6f1838096baf5d75de224e7fc04 Mon Sep 17 00:00:00 2001 From: eBejita <41003408+eBejita@users.noreply.github.com> Date: Thu, 27 Jun 2019 23:20:15 +0700 Subject: [PATCH] Update ChoiDujour.py --- ChoiDujour.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ChoiDujour.py b/ChoiDujour.py index 57da2e8..110da82 100644 --- a/ChoiDujour.py +++ b/ChoiDujour.py @@ -222,7 +222,7 @@ def call_hactool(moreArgs): raise Exception(err_msg) elif len(std_err): - raise Exception(std_err) + return std_out @@ -514,7 +514,7 @@ def getContents(self): print('file ' + currFile + ' not a NCA, skipping') continue - ncaInfoLines = call_hactool(["-i", "--intype=nca", currFile]).splitlines() + ncaId = get_sha256_file_digest(currFile) ncaId = ncaId[:len(ncaId)/2] @@ -830,4 +830,4 @@ def getContents(self): print('All files verified! Prepared firmware update is in folder ' + os.getcwd()) finally: if tempDirName != '': - shutil.rmtree(tempDirName, ignore_errors=True) \ No newline at end of file + shutil.rmtree(tempDirName, ignore_errors=True)