Skip to content

Commit 13e39da

Browse files
committed
Ensure "dbname" is set in the uri, once again
Fixes #16625 (ref #10600)
1 parent c05d779 commit 13e39da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎python/plugins/db_manager/db_plugins/postgis/connector.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, uri):
5656
password = uri.password() or os.environ.get('PGPASSWORD')
5757

5858
# Do not get db and user names from the env if service is used
59-
if uri.service() is None:
59+
if not uri.service():
6060
if username is None:
6161
username = os.environ.get('USER')
6262
self.dbname = uri.database() or os.environ.get('PGDATABASE') or username

0 commit comments

Comments
 (0)