home · contact · privacy
Server/py: Add error message on manipulating ThingAction yet undefined.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 25 Feb 2015 09:40:25 +0000 (10:40 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 25 Feb 2015 09:40:25 +0000 (10:40 +0100)
plomrogue-server.py

index b6196c3c18100c94e57dd261928f38d6ba9a5d18..edefac75198cb973130ec3f0e936de5f742db9f1 100755 (executable)
@@ -368,6 +368,9 @@ def command_taeffort(str_int):
         val = integer_test(str_int, 0, 255)
         if val:
             world_db["thing actions"][command_taid.id]["TA_EFFORT"] = val
+    else:
+        print("No thing action defined to manipulate yet.")
+
 
 
 """Commands database.