mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-09 22:23:35 +00:00
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:
@ -838,7 +838,7 @@ gam update notification|notifications [(id all)|(id <NotificationID>)*] unread|r
|
||||
gam delete notification|notifications [(id all)|(id <NotificationID>)*]
|
||||
gam info notification|notifications [unreadonly]
|
||||
|
||||
gam create building <BuildingID> <BuildingAttributes>*
|
||||
gam create building <Name> <BuildingAttributes>*
|
||||
gam update building <BuildIngID> <BuildingAttributes>*
|
||||
gam delete building <BuildingID>
|
||||
gam info building <BuildingID>
|
||||
|
@ -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')
|
||||
|
Reference in New Issue
Block a user