IndexError / Worker initialization sets wrong last_file_index #534
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Describe the bug
During initialization
Worker
sets instance fieldself.last_file_index = len(self.files)
which is totally wrong for non-empty list of files. Lately when working with archive this bug raises IndexError: list index out of range.Such behavior is caused by side-effects while working with
Worker
hence on second and further initializations it becomes corrupted.To Reproduce
Expected behavior
Environment:
Current workaround
Just create new wrapper per each archive operation:
Possible fixes
Worker
reinitialization. On of many approaches:The text was updated successfully, but these errors were encountered: