We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dabc24 commit 84f89e8Copy full SHA for 84f89e8
1 file changed
contract-tests/client_entity.py
@@ -342,8 +342,8 @@ def _create_persistent_store(persistent_store_config: dict):
342
caching=caching
343
)
344
elif store_type == "dynamodb":
345
- # Parse endpoint from DSN
346
- parsed = urlparse(dsn)
+ # Parse endpoint from DSN (handle URLs without scheme)
+ parsed = urlparse(dsn) if '://' in dsn else urlparse(f'http://{dsn}')
347
endpoint_url = f"{parsed.scheme}://{parsed.netloc}"
348
349
# Import boto3 for DynamoDB configuration
0 commit comments