It's not a user error in the API gives us a bogus buildingId (#653)

* It's not a user error in the API gives us a bogus buildingId

* Update documentation, and _getBuildingNameById

You can do what ever you want except exit
This commit is contained in:
Ross Scroggs
2017-12-20 02:05:53 -08:00
committed by Jay Lee
parent d10302ad9d
commit 8dd683029b
2 changed files with 2 additions and 3 deletions

View File

@ -8025,8 +8025,7 @@ def _getBuildingNameById(cd, buildingId):
_makeBuildingIdNameMap(cd)
if buildingId in GM_Globals[GM_MAP_BUILDING_ID_TO_NAME]:
return GM_Globals[GM_MAP_BUILDING_ID_TO_NAME][buildingId]
print u'ERROR: No such building %s' % buildingId
sys.exit(3)
return u'UNKNOWN'
def doUpdateBuilding():
cd = buildGAPIObject(u'directory')