MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.88k stars 399 forks source link

fix: allow host tuple #1021

Closed lezram closed 11 months ago

lezram commented 1 year ago

When using alchemy with a multi host connection string we receive following error

 in _parse_connect_dsn_and_args
    if h.startswith('/'):
       ^^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'startswith'