You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "vincbeck (via GitHub)" <gi...@apache.org> on 2024/11/04 17:11:18 UTC

Re: [PR] Remove returns in final clause of S3ToDynamoDBOperator [airflow]

vincbeck commented on code in PR #43456:
URL: https://github.com/apache/airflow/pull/43456#discussion_r1828084861


##########
providers/src/airflow/providers/amazon/aws/transfers/s3_to_dynamodb.py:
##########
@@ -237,10 +237,13 @@ def _load_into_existing_table(self) -> str:
                 total_items += page.get("Count", 0)
                 dynamodb_hook.write_batch_data(items=page["Items"])
             self.log.info("Number of items loaded: %s", total_items)
+        except Exception as e:
+            # Does not raise errors to keep previous behavior.

Review Comment:
   Agree, do we need the `except` statement here? Removing the `except` would make more sense to me



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org