[Python-checkins] r61545 - tracker/roundup-src/roundup/roundupdb.py
martin.v.loewis
python-checkins at python.org
Tue Mar 18 20:26:41 CET 2008
Author: martin.v.loewis
Date: Tue Mar 18 20:26:40 2008
New Revision: 61545
Modified:
tracker/roundup-src/roundup/roundupdb.py
Log:
Don't try to look at the first message if there isn't any.
Modified: tracker/roundup-src/roundup/roundupdb.py
==============================================================================
--- tracker/roundup-src/roundup/roundupdb.py (original)
+++ tracker/roundup-src/roundup/roundupdb.py Tue Mar 18 20:26:40 2008
@@ -464,7 +464,7 @@
# Default the reply to the first message
msgs = self.get(nodeid, 'messages')
# Assume messages are sorted by increasing message number here
- if msgs[0] != nodeid:
+ if msgs and msgs[0] != nodeid:
inreplyto = messages.get(msgs[0], 'messageid')
if inreplyto:
writer.addheader('In-Reply-To', inreplyto)
More information about the Python-checkins
mailing list