summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index a2c8c2630..a7cd3d83a 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -32,7 +32,7 @@ import regsub
import fcntl
import random
import mm_cfg
-
+import Errors
def list_names():
"""Return the names of all lists in default list directory."""
@@ -233,10 +233,10 @@ def ValidEmail(str):
# Pretty minimal, cheesy check. We could do better...
if ((string.find(str, '|') <> -1) or (string.find(str, ';') <> -1)
or str[0] == '-'):
- raise mm_err.MMHostileAddress
+ raise Errors.MMHostileAddress
if string.find(str, '/') <> -1:
if os.path.isdir(os.path.split(str)[0]):
- raise mm_err.MMHostileAddress
+ raise Errors.MMHostileAddress
user, domain_parts = ParseEmail(str)
if not domain_parts:
if string.find(str, '@') < 1: