From 8dd683029b35efb10fca0e06e0a9fb38fce52840 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Wed, 20 Dec 2017 02:05:53 -0800 Subject: [PATCH] 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 --- src/GamCommands.txt | 2 +- src/gam.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/GamCommands.txt b/src/GamCommands.txt index 47b379c9..1547ecef 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -838,7 +838,7 @@ gam update notification|notifications [(id all)|(id )*] unread|r gam delete notification|notifications [(id all)|(id )*] gam info notification|notifications [unreadonly] -gam create building * +gam create building * gam update building * gam delete building gam info building diff --git a/src/gam.py b/src/gam.py index bd204946..b4577130 100755 --- a/src/gam.py +++ b/src/gam.py @@ -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')