Skip to content

Commit d89a8d3

Browse files
committed
Made unzip also not-fail on return code 2
1 parent f506459 commit d89a8d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def unpack(self, arch):
425425
if extraction_filename.endswith('.zip'):
426426
try:
427427
sh.unzip(extraction_filename)
428-
except sh.ErrorReturnCode_1:
428+
except (sh.ErrorReturnCode_1, sh.ErrorReturnCode_2):
429429
pass # return code 1 means unzipping had
430430
# warnings but did complete,
431431
# apparently happens sometimes with

0 commit comments

Comments
 (0)