fix: 修复系统用户解密

v2.23
ibuler 2022-07-21 15:52:09 +08:00 committed by Jiangjie.Bai
parent 8aa21db52b
commit 4bceac8e83
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ def decrypt_password(value):
aes = get_aes_crypto(aes_key, 'ECB')
try:
password = aes.decrypt(password_cipher)
except UnicodeDecodeError as e:
except Exception as e:
logging.error("Decript password error: {}, {}".format(password_cipher, e))
return value
return password