summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index c238959d4..889ce3366 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -674,11 +674,12 @@ class SafeDict(UserDict):
This is used in maketext so that editing templates is a bit more robust.
"""
- def __init__(self, d):
+ def __init__(self, d=None):
# optional initial dictionary is a Python 1.5.2-ism. Do it this way
# for portability
UserDict.__init__(self)
- self.update(d)
+ if d is not None:
+ self.update(d)
def __getitem__(self, key):
try: