diff --git a/pyiceberg/catalog/s3tables.py b/pyiceberg/catalog/s3tables.py index 2cfdf9595b..1e6b8585d6 100644 --- a/pyiceberg/catalog/s3tables.py +++ b/pyiceberg/catalog/s3tables.py @@ -117,7 +117,9 @@ def _validate_namespace_identifier(self, namespace: Union[str, Identifier]) -> s namespace = self.identifier_to_database(namespace) if not S3TABLES_VALID_NAME_REGEX.fullmatch(namespace) or namespace == S3TABLES_RESERVED_NAMESPACE: - raise InvalidNamespaceName("The specified namespace name is not valid. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html for naming rules.") + raise InvalidNamespaceName( + "The specified namespace name is not valid. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html for naming rules." + ) return namespace @@ -127,7 +129,9 @@ def _validate_database_and_table_identifier(self, identifier: Union[str, Identif namespace = self._validate_namespace_identifier(namespace) if not S3TABLES_VALID_NAME_REGEX.fullmatch(table_name): - raise InvalidTableName("The specified table name is not valid. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html for naming rules.") + raise InvalidTableName( + "The specified table name is not valid. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html for naming rules." + ) return namespace, table_name @@ -161,7 +165,9 @@ def create_table( ) from e try: - response = self.s3tables.get_table_metadata_location(tableBucketARN=self.table_bucket_arn, namespace=namespace, name=table_name) + response = self.s3tables.get_table_metadata_location( + tableBucketARN=self.table_bucket_arn, namespace=namespace, name=table_name + ) warehouse_location = response["warehouseLocation"] metadata_location = self._get_metadata_location(location=warehouse_location)