Add an extra None check for password before encryption to avoid possible failure

pull/6087/head
Aditya Toshniwal 2023-04-03 17:21:16 +05:30
parent 53b9fe1c86
commit e334b87b4c
1 changed files with 2 additions and 1 deletions
web/pgadmin/browser/server_groups/servers

View File

@ -1139,7 +1139,8 @@ class ServerNode(PGChildNodeView):
password = None
passfile = None
tunnel_password = ''
if 'password' in data and data["password"] != '':
if 'password' in data and data["password"] != '' and \
data["password"] is not None:
# login with password
have_password = True
password = data['password']