[archive] fix exception when specifying path as list (#7088)

This commit is contained in:
Mike Fährmann
2025-02-28 21:22:55 +01:00
parent 6c8c264cf5
commit 1a6fa70e5e

View File

@@ -19,7 +19,8 @@ def connect(path, prefix, format,
table=None, mode=None, pragma=None, kwdict=None, cache_key=None):
keygen = formatter.parse(prefix + format).format_map
if path.startswith(("postgres://", "postgresql://")):
if isinstance(path, str) and path.startswith(
("postgres://", "postgresql://")):
if mode == "memory":
cls = DownloadArchivePostgresqlMemory
else: