Author: ratchet
Date: 2008-11-14 10:58:12 +0000 (Fri, 14 Nov 2008)
New Revision: 23565

Modified:
   trunk/apps/pyFreenetHg/FreenetHg.py
Log:
fix for NoneType Iteration if no notify trigger in conf (71:7d615341b32e)


Modified: trunk/apps/pyFreenetHg/FreenetHg.py
===================================================================
--- trunk/apps/pyFreenetHg/FreenetHg.py 2008-11-14 02:33:35 UTC (rev 23564)
+++ trunk/apps/pyFreenetHg/FreenetHg.py 2008-11-14 10:58:12 UTC (rev 23565)
@@ -117,10 +117,11 @@
         uiw = self.ui.walkconfig()
         trigger = self.ui.config('freenethg','notify')

-        for section, key, value in uiw:
-            if 'notify_' in section and key == 'type' and 
section.replace('notify_','') in trigger:
-                m = getattr(self, value)
-                m(section)
+        if trigger:
+            for section, key, value in uiw:
+                if 'notify_' in section and key == 'type' and 
section.replace('notify_','') in trigger:
+                    m = getattr(self, value)
+                    m(section)

     def fmsnntp(self, config_section):
         fms_host = self.ui.config(config_section,'fmshost')


Reply via email to