Skip to content

Commit 95a8c37

Browse files
author
Richard Jones
committed
paranoia from Toby Dickenson
1 parent c983c2a commit 95a8c37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

roundup/roundupdb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: roundupdb.py,v 1.137 2008-01-08 20:56:23 richard Exp $
19+
# $Id: roundupdb.py,v 1.138 2008-01-08 20:58:31 richard Exp $
2020

2121
"""Extending hyperdb with types specific to issue-tracking.
2222
"""
@@ -424,7 +424,8 @@ def send_message(self, nodeid, msgid, note, sendto, from_address=None,
424424
# Assume messages are sorted by increasing message number here
425425
if msgs[0] != nodeid:
426426
inreplyto = messages.get(msgs[0], 'messageid')
427-
writer.addheader('In-Reply-To', inreplyto)
427+
if inreplyto:
428+
writer.addheader('In-Reply-To', inreplyto)
428429

429430
# attach files
430431
if message_files:

0 commit comments

Comments
 (0)