changeset 218:877042bf42e8

oops ;)
author Richard Jones <richard@users.sourceforge.net>
date Wed, 08 Aug 2001 00:08:03 +0000
parents b02a69130c91
children 2482585afdbb
files roundup/mailgw.py
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/mailgw.py	Tue Aug 07 04:17:39 2001 +0000
+++ b/roundup/mailgw.py	Wed Aug 08 00:08:03 2001 +0000
@@ -72,7 +72,7 @@
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception. 
 
-$Id: mailgw.py,v 1.10 2001-08-07 00:24:42 richard Exp $
+$Id: mailgw.py,v 1.11 2001-08-08 00:08:03 richard Exp $
 '''
 
 
@@ -154,9 +154,10 @@
         Parse the message as per the module docstring.
         '''
         # handle the subject line
-        m = subject_re.match(message.getheader('subject'))
+        subject = message.getheader('subject')
+        m = subject_re.match(subject)
         if not m:
-            raise ValueError, 'No [designator] found in subject "%s"'
+            raise ValueError, 'No [designator] found in subject "%s"'%subject
         classname = m.group('classname')
         nodeid = m.group('nodeid')
         title = m.group('title').strip()
@@ -334,6 +335,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.10  2001/08/07 00:24:42  richard
+# stupid typo
+#
 # Revision 1.9  2001/08/07 00:15:51  richard
 # Added the copyright/license notice to (nearly) all files at request of
 # Bizar Software.

Roundup Issue Tracker: http://roundup-tracker.org/