fix: 启动500 (#11133)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-07-31 18:31:11 +08:00
committed by GitHub
parent 0ed929a3b2
commit 1ad0a20627
4 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
from contextlib import contextmanager
from django.db import connections
from django.utils.encoding import force_text
from django.utils.encoding import force_str
from common.utils import get_logger, signer, crypto
@@ -60,7 +60,7 @@ def safe_db_connection():
class Encryptor:
def __init__(self, value):
self.value = force_text(value)
self.value = force_str(value)
def decrypt(self):
plain_value = crypto.decrypt(self.value)