From: Eugene A. <ant...@us...> - 2006-03-14 01:47:04
|
Update of /cvsroot/mailmanager/MailManager/Extensions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25165/Extensions Modified Files: TicketPluggableBrain.py Log Message: Fixed switching format from html to plain text Index: TicketPluggableBrain.py =================================================================== RCS file: /cvsroot/mailmanager/MailManager/Extensions/TicketPluggableBrain.py,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- TicketPluggableBrain.py 10 Mar 2006 18:12:11 -0000 1.30 +++ TicketPluggableBrain.py 14 Mar 2006 01:46:58 -0000 1.31 @@ -760,7 +760,10 @@ body_was_html = 0 elif template_name.endswith('_html'): template_name = template_name[:-5] - template_is_html = self._getTemplate(template_name)['html'] + try: + template_is_html = self._getTemplate(template_name)['html'] + except KeyError: + template_is_html = body_is_html body_was_html = 1 # A new choice of template. else: |