diff options
-rw-r--r-- | Mailman/MailList.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index 143987c6..541d12d3 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -1386,4 +1386,6 @@ bad regexp in bounce_matching_header line: %s # preferred language. if mm_cfg.DEFAULT_SERVER_LANGUAGE not in langs: langs.append(mm_cfg.DEFAULT_SERVER_LANGUAGE) - return langs + # When testing, it's possible we've disabled a language, so just + # filter things out so we don't get tracebacks. + return [lang for lang in langs if mm_cfg.LC_DESCRIPTIONS.has_key(lang)] |