Commits

Jean-François Roche committed 2e984fa

Fix subscriber when config code is not present in zope config file

  • Participants
  • Parent commits 06aece8

Comments (0)

Files changed (2)

 0.7 (unreleased)
 ----------------
 
-- Nothing changed yet.
+- Fix subscriber when config code is not present in zope config file
 
 
 0.6 (2011-06-14)
 ----------------
 
-- Nothing changed yet.
+- Remove logging definition from code, should be in config file
 
 
 0.5 (2011-06-09)

src/affinitic/zamqp/service.py

 
 def getAutostartServiceNames():
     """get a list of services to start"""
-    config = getConfiguration().product_config
+    config = getattr(getConfiguration(), 'product_config', None)
     if config is not None:
         task_config = config.get('affinitic.zamqp', None)
         if task_config: