diff options
| author | Barry Warsaw | 2013-01-20 16:23:09 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2013-01-20 16:23:09 -0500 |
| commit | ccef4d2b12333c4177a557081b0b39dc1c29dd8b (patch) | |
| tree | 10d1da23353e17a670a3b7cea2c3f3bfed47bc87 /src/mailman/core/switchboard.py | |
| parent | 8f9ff6711aa42dad7e01393202103bc98ebdaeea (diff) | |
| parent | dde63003c1b489744dce6b3181b95276ec88a1da (diff) | |
| download | mailman-ccef4d2b12333c4177a557081b0b39dc1c29dd8b.tar.gz mailman-ccef4d2b12333c4177a557081b0b39dc1c29dd8b.tar.zst mailman-ccef4d2b12333c4177a557081b0b39dc1c29dd8b.zip | |
Diffstat (limited to 'src/mailman/core/switchboard.py')
| -rw-r--r-- | src/mailman/core/switchboard.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mailman/core/switchboard.py b/src/mailman/core/switchboard.py index f0c7bff5e..ec0231ed7 100644 --- a/src/mailman/core/switchboard.py +++ b/src/mailman/core/switchboard.py @@ -266,7 +266,10 @@ def handle_ConfigurationUpdatedEvent(event): name = conf.name.split('.')[-1] assert name not in config.switchboards, ( 'Duplicate runner name: {0}'.format(name)) - substitutions = config.paths - substitutions['name'] = name - path = expand(conf.path, substitutions) - config.switchboards[name] = Switchboard(name, path) + # Path is empty for non-queue runners. Check for path and create + # switchboard instances only for queue runners. + if conf.path: + substitutions = config.paths + substitutions['name'] = name + path = expand(conf.path, substitutions) + config.switchboards[name] = Switchboard(name, path) |
