Fix a small bug

- Fix a bug that the clients under v4.0.0 cannot upload the cloud save
This commit is contained in:
Lost-MSth
2022-07-29 21:31:38 +08:00
parent cdf76fb93a
commit 4f52df35ce
5 changed files with 79 additions and 1 deletions

View File

@@ -110,6 +110,8 @@ class SaveData:
'''
从Arcaea客户端给的奇怪字符串中获取存档数据并进行数据校验
'''
if not value:
return None
if key not in self.__dict__:
raise KeyError(
'Property `%s` is not found in the instance of `SaveData` class.' % key)