summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mailman/commands/cli_withlist.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/commands/cli_withlist.py b/src/mailman/commands/cli_withlist.py
index 492391c7b..97e205806 100644
--- a/src/mailman/commands/cli_withlist.py
+++ b/src/mailman/commands/cli_withlist.py
@@ -142,7 +142,8 @@ class Withlist:
abort=config.db.abort,
config=config,
)
- banner = config.shell.banner + '\n' + banner
+ banner = config.shell.banner + '\n' + (
+ banner if isinstance(banner, str) else '')
if as_boolean(config.shell.use_ipython):
self._start_ipython(overrides, banner)
else: