awa? render making!

This commit is contained in:
沈瑗杰 2021-01-09 22:05:43 +08:00
parent 03abb4241c
commit 5ddb2cfc06
2 changed files with 4 additions and 1 deletions

View File

@ -14,5 +14,8 @@
},
"basic_force" : {
"name": ["x", "y", "x&y format:basic_number/unit1:[m]/unit2:[]"]
},
"basic_poi": {
"name": ["x", "y"]
}
}

View File

@ -12,7 +12,7 @@ def config(file_name, stack=None):
with open(file_name, "r") as jf: # jf -> json file
rd = json.load(jf)
except FileNotFoundError:
raise
raise FileNotFoundError("no config file")
if stack != None:
rd = rd[stack]
return rd