fix: 增加测试数据
This commit is contained in:
@@ -29,12 +29,13 @@ class NucleonCreatorScreen(Screen):
|
||||
if i.name.endswith('.toml'):
|
||||
try:
|
||||
import toml
|
||||
with open('r', i) as f:
|
||||
with open(i, 'r') as f:
|
||||
dic = toml.load(f)
|
||||
desc = dic['__metadata__']['attribution']['desc']
|
||||
desc = dic['__metadata__.attribution']['desc']
|
||||
templates.append(desc + ' (' + i.name + ')')
|
||||
except:
|
||||
except Exception as e:
|
||||
templates.append(f'无描述模板 ({i.name})')
|
||||
print(e)
|
||||
print(templates)
|
||||
return templates
|
||||
|
||||
|
||||
Reference in New Issue
Block a user