[Python-checkins] r71883 - tracker/instances/python-dev/detectors/autonosy.py

martin.v.loewis python-checkins at python.org
Sat Apr 25 14:51:30 CEST 2009


Author: martin.v.loewis
Date: Sat Apr 25 14:51:29 2009
New Revision: 71883

Log:
Fix autonosy for new issues.


Modified:
   tracker/instances/python-dev/detectors/autonosy.py

Modified: tracker/instances/python-dev/detectors/autonosy.py
==============================================================================
--- tracker/instances/python-dev/detectors/autonosy.py	(original)
+++ tracker/instances/python-dev/detectors/autonosy.py	Sat Apr 25 14:51:29 2009
@@ -18,8 +18,9 @@
         new_nosy = [value for value in new_nosy if db.hasnode('user', value)]
         nosy |= set(new_nosy)
     else:
-        old_nosy = db.issue.get(nodeid, 'nosy')
-        nosy |= set(old_nosy)
+        if nodeid:
+            old_nosy = db.issue.get(nodeid, 'nosy')
+            nosy |= set(old_nosy)
 
     for component in components:
         users = db.component.get(component, 'add_as_nosy')


More information about the Python-checkins mailing list