Skip to content

Commit

Permalink
Remove returns in final clause of S3ToDynamoDBOperator (#43456)
Browse files Browse the repository at this point in the history
* Remove returns in final clause of S3ToDynamoDBOperator

* remove temp table in finally

* remove duplicate log

Co-authored-by: rom sharon <33751805+romsharon98@users.noreply.github.com>

* remove except statement

* remove test case

---------

Co-authored-by: rom sharon <33751805+romsharon98@users.noreply.github.com>
  • Loading branch information
yangyulely and romsharon98 authored Nov 5, 2024
1 parent b9b0614 commit d8f71a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def _load_into_existing_table(self) -> str:
finally:
self.log.info("Delete tmp DynamoDB table %s", self.tmp_table_name)
client.delete_table(TableName=self.tmp_table_name)
return dynamodb_hook.get_conn().Table(self.dynamodb_table_name).table_arn
return dynamodb_hook.get_conn().Table(self.dynamodb_table_name).table_arn

def execute(self, context: Context) -> str:
"""
Expand Down

0 comments on commit d8f71a2

Please sign in to comment.