diff --git a/apps/common/utils/crypto.py b/apps/common/utils/crypto.py index f6a690a82..d1c283dd7 100644 --- a/apps/common/utils/crypto.py +++ b/apps/common/utils/crypto.py @@ -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