Skip to content

Commit ae8d9fd

Browse files
author
James William Pye
committed
Default to an empty tuple.
Protects against cases of a None path.
1 parent 401f055 commit ae8d9fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/iri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def construct(x, obscure_password = False):
129129
if 'database' in x:
130130
path.append(x['database'])
131131
if 'path' in x:
132-
path.extend(x['path'])
132+
path.extend(x['path'] or ())
133133

134134
password = x.get('password')
135135
if obscure_password and password is not None:

0 commit comments

Comments
 (0)