Roundup Tracker - Issues

Message371

Author anonymous
Recipients
Date 2002-09-25.04:45:22
Message-id
In-reply-to
I'm running roundup-0.4.4. Someone submitted a bug via 
email, and got the exception

Traceback (most recent call last):
  File "C:\Python22\Lib\site-
packages\roundup\mailgw.py", line 150, in 
handle_Message
    return self.handle_message(message)
  File "C:\Python22\Lib\site-
packages\roundup\mailgw.py", line 655, in 
handle_message
    keep_body)
  File "C:\Python22\Lib\site-
packages\roundup\mailgw.py", line 742, in parseContent
    if line[0] not in '>|':
IndexError: string index out of range

The respective lines read

for line in lines[1:]:
    if line[0] not in '>|':
        break

this raises an exception if line is an empty string. As far 
as I can see, it shouldn't check empty lines, so here is 
my proposed fix:
    
for line in lines[1:]:
    if line and line[0] not in '>|':
        break
    
    

    
History
Date User Action Args
2009-02-03 14:20:05adminlinkissue614188 messages
2009-02-03 14:20:05admincreate