web/hosts/issues/detectors newissues.py,1.2,1.3
Nick Lewycky <[email protected]>
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/web/hosts/issues/detectors
In directory purcel:/tmp/cvs-serv13530
Modified Files:
newissues.py
Log Message:
Don't throw exception where there are no users to notify.
Fixes bug237.
Index: newissues.py
===================================================================
RCS file: /cvs/fresco/web/hosts/issues/detectors/newissues.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- newissues.py 29 Jan 2003 01:41:35 -0000 1.2
+++ newissues.py 10 Feb 2003 14:58:31 -0000 1.3
@@ -18,12 +18,13 @@
break
# send a copy to all interested users
- for msgid in cl.get(nodeid, 'messages'):
- try:
- # note: last arg must be a list
- cl.send_message(nodeid, msgid, change_note, users)
- except roundupdb.MessageSendError, message:
- raise roundupdb.DetectorError, message
+ if users:
+ for msgid in cl.get(nodeid, 'messages'):
+ try:
+ # note: last arg must be a list
+ cl.send_message(nodeid, msgid, change_note, users)
+ except roundupdb.MessageSendError, message:
+ raise roundupdb.DetectorError, message
def init(db):
db.bug.react('create', notify)