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

View File

@@ -868,7 +868,8 @@ class ServerNode(PGChildNodeView):
try:
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
# new server name
password = keyring.get_password(