summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2001-02-28 06:25:07 +0000
committerbwarsaw2001-02-28 06:25:07 +0000
commit5ecebc39c801fae3c603dbc38db91792cccf03d4 (patch)
tree4064789171ccd282091393814160cf79e86a8336
parentd4117e2559487604b13fa55121d903681fad00c3 (diff)
downloadmailman-5ecebc39c801fae3c603dbc38db91792cccf03d4.tar.gz
mailman-5ecebc39c801fae3c603dbc38db91792cccf03d4.tar.zst
mailman-5ecebc39c801fae3c603dbc38db91792cccf03d4.zip
-rw-r--r--Mailman/Utils.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 57f1261ce..b57820ae0 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -476,7 +476,12 @@ def maketext(templatefile, dict=None, raw=0, lang=None):
fp = open(file)
template = fp.read()
fp.close()
- text = template % SafeDict(dict)
+ from Mailman.Logging.Syslog import syslog
+ try:
+ text = template % SafeDict(dict)
+ except TypeError:
+ # The template is really screwed up
+ text = template
if raw:
return text
return wrap(text)
@@ -603,7 +608,5 @@ def GetLanguageDescr(lang):
return mm_cfg.LC_DESCRIPTIONS[lang][0]
-def GetCharSet():
- # BAW: Hmm...
- lang = os.environ['LANG']
+def GetCharSet(lang):
return mm_cfg.LC_DESCRIPTIONS[lang][1]