From 37e5c3fe400b339d140158501143130c195472b5 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Fri, 18 Nov 2022 21:34:45 -0700 Subject: [PATCH] try to fix s3 pagination --- iso/empanadas/empanadas/util/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iso/empanadas/empanadas/util/shared.py b/iso/empanadas/empanadas/util/shared.py index 0e99712..0d58fb8 100644 --- a/iso/empanadas/empanadas/util/shared.py +++ b/iso/empanadas/empanadas/util/shared.py @@ -566,7 +566,7 @@ class Shared: s3 = boto3.client('s3') try: - res = s3.list_objects(Bucket=s3_bucket)['Contents'] + res = s3.list_objects(Bucket=s3_bucket) except: logger.error( '[' + Color.BOLD + Color.RED + 'FAIL' + Color.END + '] ' +