Fix an issue where the edit server fails in desktop mode if the server password is not stored. #6489

This commit is contained in:
Nikhil Mohite 2023-07-17 11:19:20 +05:30 committed by GitHub
parent d98ce3864f
commit d3753ee132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -868,7 +868,8 @@ class ServerNode(PGChildNodeView):
try: try:
if len(old_server_name) and old_server_name != server.name and \ if len(old_server_name) and old_server_name != server.name and \
not config.DISABLED_LOCAL_PASSWORD_STORAGE: not config.DISABLED_LOCAL_PASSWORD_STORAGE and \
server.save_password:
# If server name is changed then update keyring with # If server name is changed then update keyring with
# new server name # new server name
password = keyring.get_password( password = keyring.get_password(