1
0
Fork 0
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:
Tim Moody 2019-05-31 18:56:19 -04:00
parent 43a245e3d8
commit b98e23eeed

View file

@ -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']