Skip to content

Commit 531869a

Browse files
committed
Fix failing integration tests
1 parent cc903b1 commit 531869a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/apify/storage_clients/_apify/_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,8 @@ async def _open_by_alias(self, alias: str) -> tuple[TResourceClient, TStorageMet
326326

327327
# There was no pre-existing alias in the mapping or the id did not point to existing storage.
328328
# Create a new unnamed storage and store the alias mapping.
329-
metadata = ApifyKeyValueStoreMetadata.model_validate(
330-
await self._collection_client.get_or_create(),
331-
)
329+
raw_metadata = await self._collection_client.get_or_create()
330+
metadata = ApifyKeyValueStoreMetadata.model_validate(raw_metadata)
332331
await _alias.store_mapping(storage_id=metadata.id)
333332

334333
# Return the client for the newly created storage directly.

0 commit comments

Comments
 (0)