summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2003-02-04 16:23:11 +0000
committerbwarsaw2003-02-04 16:23:11 +0000
commit3becc14765a5261738f93d4972322a0f2de7d829 (patch)
tree8b7c56ba4ec582b5024c3e85392f35ad69009d58
parent1af415f539730e67a268dc472e89b18d32e157c7 (diff)
downloadmailman-3becc14765a5261738f93d4972322a0f2de7d829.tar.gz
mailman-3becc14765a5261738f93d4972322a0f2de7d829.tar.zst
mailman-3becc14765a5261738f93d4972322a0f2de7d829.zip
-rw-r--r--Mailman/Queue/CommandRunner.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/Queue/CommandRunner.py b/Mailman/Queue/CommandRunner.py
index 303d4c52c..785511b31 100644
--- a/Mailman/Queue/CommandRunner.py
+++ b/Mailman/Queue/CommandRunner.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2003 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -104,7 +104,8 @@ class Results:
try:
__import__(modname)
handler = sys.modules[modname]
- except ImportError:
+ # ValueError can be raised if cmd has dots in it.
+ except (ImportError, ValueError):
# If we're on line zero, it was the Subject: header that didn't
# contain a command. It's possible there's a Re: prefix (or
# localized version thereof) on the Subject: line that's messing