mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
skip unknown map regions
This commit is contained in:
parent
43a245e3d8
commit
b98e23eeed
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ def main():
|
||||||
if len(installed_maps) == 1:
|
if len(installed_maps) == 1:
|
||||||
menus.update_menu_json(menu_ref)
|
menus.update_menu_json(menu_ref)
|
||||||
return
|
return
|
||||||
|
elif region not in map_catalog['regions']:
|
||||||
|
print "Skipping unknown map " + fname
|
||||||
|
continue
|
||||||
else:
|
else:
|
||||||
item = map_catalog['regions'][region]
|
item = map_catalog['regions'][region]
|
||||||
menu_ref = item['perma_ref']
|
menu_ref = item['perma_ref']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue