From c379d4e7b60ef6eb95a21803bc0109c0b0fec4da Mon Sep 17 00:00:00 2001 From: naelsondouglas Date: Tue, 2 Nov 2021 04:51:22 -0300 Subject: [PATCH] Removed a case of the manual indexer pitfall --- uds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uds.py b/uds.py index 53693d8..86af2a3 100755 --- a/uds.py +++ b/uds.py @@ -348,8 +348,8 @@ def bunch(self, file_part, path='.'): files_upload.append(name) elif file_part == "?": files_upload.append(name) - for name_data in range(len(files_upload)): # Upload all files put in list - full_path = str(path) + "/" + str(files_upload[name_data]) + for _, file in enumerate(files_upload): # Upload all files put in list + full_path = str(path) + "/" + str(file) self.do_chunked_upload(full_path) print() self.update(mode=1) # Necessary update to data