From b5615d2db57f20f364d56684b15b08c2c4e993b8 Mon Sep 17 00:00:00 2001 From: TheTechRobo <52163910+TheTechRobo@users.noreply.github.com> Date: Wed, 2 Feb 2022 12:05:40 -0500 Subject: [PATCH] Explicitly cast totalitems to a list, fixes ArchiveTeam#9 See https://stackoverflow.com/a/15806594/9654083 --- ftp_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftp_check.py b/ftp_check.py index 49a8157..58f6f6d 100644 --- a/ftp_check.py +++ b/ftp_check.py @@ -79,7 +79,7 @@ def fixurl(itemurl): os.remove('wget-log') os.chdir('..') shutil.rmtree(re.search(r'^([^\/]+)', ftp).group(1)) - totalitems = zip(itemftps, itemslist, itemsizes) + totalitems = list(zip(itemftps, itemslist, itemsizes)) archivelist = [] newitems = [] itemsize = 0