CVS: tmda/TMDA Pending.py,1.29,1.30

"Jason R. Mastaler" <[email protected]>
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda/TMDA
In directory sc8-pr-cvs1:/tmp/cvs-serv9060/TMDA

Modified Files:
	Pending.py 
Log Message:
Bugfix from Tim.

Incomplete class hierarchy from email/Errors.py:

  MessageError
  +- MessageParseError
     +- BoundaryError
     +- HeaderParseError

So... code that catches a BoundaryError won't catch a
HeaderParseError.  Code that catches a MessageError will catch both.

Will apply to release-1-0 branch as well.


Index: Pending.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Pending.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- Pending.py	11 Jan 2004 07:36:52 -0000	1.29
+++ Pending.py	15 Jan 2004 22:47:21 -0000	1.30
@@ -423,7 +423,7 @@
             raise Errors.MessageError, '%s not found!' % self.msgid
         try:
             self.msgobj = email.message_from_file(open(self.msgfile, 'r'))
-        except email.Errors.BoundaryError:
+        except email.Errors.MessageError:
             self.msgobj = Util.msg_from_file(open(self.msgfile, 'r'))
         self.recipient = recipient
         if self.recipient is None:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.