- if the appropriate message template doesn't exist log error and exit without throwi...
[plcapi.git] / PLC / Methods / BootNotifyOwners.py
index 7de5a1a..418905d 100644 (file)
@@ -29,8 +29,8 @@ class BootNotifyOwners(Method):
     def call(self, auth, message_id, include_pis, include_techs, include_support):
         messages = Messages(self.api, [message_id], enabled = True)
         if not messages:
-            # raise PLCInvalidArgument, "No such message template"
-            return 1
+            print >> log, "No such message template"
+           return 1
         message = messages[0]
        
         if not self.api.config.PLC_MAIL_ENABLED: