File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -461,18 +461,17 @@ def extract_data_file(data_file, archive):
461461 # attempt decompression. If they under report a compressed
462462 # file might bypass decompression. So do this:
463463 #
464- # * Attempt to do things normally.
465- # * Force Decompression and fall back to original exception
466- # * mpyq doesn't allow you to ignore decompression, it has
467- # not been a problem yet though.
464+ # * Force a decompression to catch under reporting
465+ # * If that fails, try to process normally
466+ # * mpyq doesn't allow you to skip decompression, so fail
468467 #
469468 # Refs: arkx/mpyq#12, GraylinKim/sc2reader#102
470469 try :
471- file_data = archive .read_file (data_file )
470+ file_data = archive .read_file (data_file , force_decompress = True )
472471 except Exception as e :
473472 exc_info = sys .exc_info ()
474473 try :
475- file_data = archive .read_file (data_file , force_decompress = True )
474+ file_data = archive .read_file (data_file )
476475 except Exception as e :
477476 # raise the original exception
478477 raise exc_info [1 ], None , exc_info [2 ]
You can’t perform that action at this time.
0 commit comments