[Update] 修改读取日志时可能解码失败

This commit is contained in:
ibuler
2019-10-21 19:28:33 +08:00
parent 86522627d3
commit 6ebe8e16bd
2 changed files with 18 additions and 6 deletions

View File

@@ -182,3 +182,7 @@ def encrypt_password(password, salt=None):
def get_signer():
signer = Signer(settings.SECRET_KEY)
return signer
def ensure_last_char_is_ascii(data):
remain = ''