[archive] fix exception when specifying path as list (#7088)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user