Skip to content

Commit 84f89e8

Browse files
committed
Fix parsing for dynamodb
1 parent 6dabc24 commit 84f89e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

contract-tests/client_entity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ def _create_persistent_store(persistent_store_config: dict):
342342
caching=caching
343343
)
344344
elif store_type == "dynamodb":
345-
# Parse endpoint from DSN
346-
parsed = urlparse(dsn)
345+
# Parse endpoint from DSN (handle URLs without scheme)
346+
parsed = urlparse(dsn) if '://' in dsn else urlparse(f'http://{dsn}')
347347
endpoint_url = f"{parsed.scheme}://{parsed.netloc}"
348348

349349
# Import boto3 for DynamoDB configuration

0 commit comments

Comments
 (0)