diff roundup/cgi/client.py @ 8261:28c5030757d3

fix: cae1bbf2536b - expression errors not setting result properly Rather than setting 'result' in renderContext, I was wrirting the output directly, but was stil falling through to where result would be used. This caused email to be sent to the admin and when test_mailgw was called the mail-test.log was somehow created and caused the test there to fail. Fixed renderContext to use result variable and output contents of mail-test.log to make debugging easier. This should fix CI failure.
author John Rouillard <rouilj@ieee.org>
date Sun, 05 Jan 2025 00:59:12 -0500
parents cae1bbf2536b
children 35beff316883
line wrap: on
line diff
--- a/roundup/cgi/client.py	Sat Jan 04 22:34:47 2025 -0500
+++ b/roundup/cgi/client.py	Sun Jan 05 00:59:12 2025 -0500
@@ -2233,7 +2233,7 @@
             except ExpressionError as e:
                 self.add_error_message(str(e))
                 self.template = "search"
-                self.write_html(self.renderContext())
+                result = self.renderContext()
 
             if 'Content-Type' not in self.additional_headers:
                 self.additional_headers['Content-Type'] = pt.content_type

Roundup Issue Tracker: http://roundup-tracker.org/