MINOR: Fix error message in S3Source (#16043)

* Fix error message in S3Source

* Fix checkstyle

---------

Co-authored-by: Pablo Takara <pjt1991@gmail.com>
This commit is contained in:
Fredrik Möllerstrand 2024-04-26 11:50:38 +02:00 committed by GitHub
parent 4ac5912d4c
commit 21d7a2ffba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,9 +89,7 @@ class S3Source(StorageServiceSource):
config: WorkflowSource = WorkflowSource.parse_obj(config_dict)
connection: S3Connection = config.serviceConnection.__root__.config
if not isinstance(connection, S3Connection):
raise InvalidSourceException(
f"Expected S3StoreConnection, but got {connection}"
)
raise InvalidSourceException(f"Expected S3Connection, but got {connection}")
return cls(config, metadata)
def get_containers(self) -> Iterable[S3ContainerDetails]: