Log when we fail to get key password from secure cmd

Change-Id: I4455f43e43b772e785ece48721dcd770f0bc8711
Signed-off-by: RITEFANG <1721985272@qq.com>
This commit is contained in:
LuK1337
2022-12-04 02:07:46 +01:00
committed by SkyMinus
parent 60f7c4c7d4
commit 6f02eeb749

View File

@@ -2906,6 +2906,8 @@ class PasswordManager(object):
output = ps.communicate()[0] output = ps.communicate()[0]
if ps.returncode == 0: if ps.returncode == 0:
current[i] = output.decode('utf-8') current[i] = output.decode('utf-8')
else:
logger.warning('Failed to get password for key "%s".', i)
except Exception as e: except Exception as e:
print(e) print(e)
pass pass