summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_withlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/commands/cli_withlist.py')
-rw-r--r--src/mailman/commands/cli_withlist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/commands/cli_withlist.py b/src/mailman/commands/cli_withlist.py
index 127308a05..d3df6dad7 100644
--- a/src/mailman/commands/cli_withlist.py
+++ b/src/mailman/commands/cli_withlist.py
@@ -217,8 +217,8 @@ class Withlist:
if len(history_file_template) > 0:
# Expand substitutions.
substitutions = {
- key.lower(): getattr(config, key)
- for key in dir(config) if key.endswith('_DIR')
+ key.lower(): value
+ for key, value in config.paths.items()
}
history_file = Template(
history_file_template).safe_substitute(substitutions)