git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f30de1
)
- don't quit if no message template exists
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 15 Nov 2006 22:18:17 +0000
(22:18 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 15 Nov 2006 22:18:17 +0000
(22:18 +0000)
PLC/Methods/BootNotifyOwners.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/BootNotifyOwners.py
b/PLC/Methods/BootNotifyOwners.py
index
b8c3396
..
c467617
100644
(file)
--- 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