Skip to content

Commit 89512b9

Browse files
committed
fix: 开启debug模式时, unpkg报json.dump错误
1 parent 33d9175 commit 89512b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ectool/unpkg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def binpkg_unpack(path_or_data, outpath_dir=None, ram=False, debug=False) :
8686
if outpath_dir :
8787
with open(os.path.join(outpath_dir, "image_info.json"), "w") as f :
8888
json.dump(jdata, f, indent=2)
89-
if debug :
89+
if outpath_dir and debug :
9090
print(json.dumps(jdata, indent=2))
9191
return jdata
9292

0 commit comments

Comments
 (0)