Fixed an issue where the dependent tab throwing an error when selecting any login/group role. Fixes #6294

This commit is contained in:
Akshay Joshi
2021-03-09 14:32:16 +05:30
parent 6ffb82fb6d
commit 0f62fecca2
3 changed files with 3 additions and 2 deletions

View File

@@ -1106,7 +1106,7 @@ rolmembership:{
# a new connection to run the query and fetch the dependents.
is_connected = True
try:
temp_conn = manager.connection(db_row['datname'])
temp_conn = manager.connection(database=db_row['datname'])
is_connected = temp_conn.connected()
if not is_connected:
temp_conn.connect()