Skip to content

Commit cc28012

Browse files
committed
fix init
1 parent 457bc4a commit cc28012

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pyiceberg/catalog/dynamodb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ def __init__(self, name: str, client: Optional[DynamoDBClient] = None, **propert
116116
aws_session_token=get_first_property_value(properties, DYNAMODB_SESSION_TOKEN, AWS_SESSION_TOKEN),
117117
)
118118
self.dynamodb = session.client(DYNAMODB_CLIENT)
119-
self.dynamodb_table_name = self.properties.get(DYNAMODB_TABLE_NAME, DYNAMODB_TABLE_NAME_DEFAULT)
120-
self._ensure_catalog_table_exists_or_create()
119+
120+
self.dynamodb_table_name = self.properties.get(DYNAMODB_TABLE_NAME, DYNAMODB_TABLE_NAME_DEFAULT)
121+
self._ensure_catalog_table_exists_or_create()
121122

122123
def _ensure_catalog_table_exists_or_create(self) -> None:
123124
if self._dynamodb_table_exists():

0 commit comments

Comments
 (0)