Added test for ZEO connection name to avoid null value
authorThierry Florac <thierry.florac@onf.fr>
Thu, 08 Jun 2017 10:49:47 +0200
changeset 33 24b97fac7e99
parent 32 5e99c9f6cef3
child 34 75f47c02cddd
Added test for ZEO connection name to avoid null value
src/pyams_scheduler/include.py
--- a/src/pyams_scheduler/include.py	Wed Jun 07 10:03:10 2017 +0200
+++ b/src/pyams_scheduler/include.py	Thu Jun 08 10:49:47 2017 +0200
@@ -80,7 +80,7 @@
                 except ComponentLookupError:
                     pass
                 else:
-                    zeo_connection = query_utility(IZEOConnection, name=zeo_connection_name)
+                    zeo_connection = query_utility(IZEOConnection, name=zeo_connection_name or '')
                     if zeo_connection is not None:
                         # create scheduler process
                         process = SchedulerProcess(start_handler, SchedulerMessageHandler, registry)