From: Mark Huang Date: Wed, 15 Nov 2006 22:18:17 +0000 (+0000) Subject: - don't quit if no message template exists X-Git-Tag: pycurl-7_13_1~292 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=081cdcd812b94d331de4d9b2328add1a64ecbf12;p=plcapi.git - don't quit if no message template exists --- diff --git a/PLC/Methods/BootNotifyOwners.py b/PLC/Methods/BootNotifyOwners.py index b8c33966..c4676177 100644 --- a/PLC/Methods/BootNotifyOwners.py +++ b/PLC/Methods/BootNotifyOwners.py @@ -29,7 +29,9 @@ 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" + # raise PLCInvalidArgument, "No such message template" + return 1 + message = messages[0] if not self.api.config.PLC_MAIL_ENABLED: return 1