fix: 修复系统用户解密

pull/10335/head
ibuler 2022-07-21 15:52:09 +08:00 committed by Jiangjie.Bai
parent 087248941b
commit f41b9e8bcf
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