Skip to content

Commit

Permalink
blk_unpack now don't stop unpacking files from folder, in case if one…
Browse files Browse the repository at this point in the history
… of file rise exception
  • Loading branch information
klensy committed Jul 19, 2018
1 parent 526a44a commit f95d328
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion blk_unpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,12 @@ def unpack_dir(dirname, out_type: int):
subname = os.path.join(root, filename)
if os.path.isfile(subname) and os.path.splitext(subname)[1] == '.blk':
print(subname)
unpack_file(subname, out_type)
try:
unpack_file(subname, out_type)
except Exception as e:
import sys
from traceback import print_exc
print_exc(file=sys.stdout)


def main():
Expand Down

0 comments on commit f95d328

Please sign in to comment.