perf: 优化支持 自定义 applet

perf: 优化平台
This commit is contained in:
ibuler
2023-04-21 11:18:04 +08:00
committed by Jiangjie.Bai
parent 01827c7b3a
commit 06052b85a2
7 changed files with 31 additions and 20 deletions

View File

@@ -98,7 +98,7 @@ class Applet(JMSBaseModel):
return
try:
with open(os.path.join(d, 'platform.yml')) as f:
data = yaml.safe_load(f)
data = yaml_load_with_i18n(f)
except Exception as e:
raise ValidationError({'error': _('Load platform.yml failed: {}').format(e)})