We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 809902d commit ca88992Copy full SHA for ca88992
external-import/s3/src/s3.py
@@ -342,7 +342,7 @@ def fix_bundle(self, bundle):
342
def process(self):
343
now = datetime.now(pytz.UTC)
344
objects = self.s3_client.list_objects(Bucket=self.s3_bucket_name)
345
- if len(objects.get("Contents")) > 0:
+ if objects.get("Contents") is not None and len(objects.get("Contents")) > 0:
346
friendly_name = "S3 run @ " + now.astimezone(pytz.UTC).isoformat()
347
work_id = self.helper.api.work.initiate_work(
348
self.helper.connect_id, friendly_name
0 commit comments