web/hosts/issues/detectors ciabot.py,1.2,1.3

Tobias Hunger <[email protected]> Wed, 27 Aug 2003 12:04:37 -0500
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/web/hosts/issues/detectors
In directory purcel:/tmp/cvs-serv16629

Modified Files:
	ciabot.py 
Log Message:
Only remove the activity field if it is actually there! This has been the
problem we have been seeing with the "Error: activity".


Index: ciabot.py
===================================================================
RCS file: /cvs/fresco/web/hosts/issues/detectors/ciabot.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ciabot.py	2 Jun 2003 03:12:34 -0000	1.2
+++ ciabot.py	27 Aug 2003 17:04:34 -0000	1.3
@@ -122,7 +122,7 @@
                 blist = [BASEURL + "bug" + nid for nid in removedbugs]
                 notes.append("Removed: " + ", ".join(blist + tlist))
 
-            del mods["activity"]
+            if mods.has_key("activity"): del mods["activity"]
             for key in mods.keys():  # we don't want to use an iter her
                 if mods[key] == cl.get(nodeid, key):
                     del mods[key]