# HG changeset patch # User John Rouillard # Date 1775425761 14400 # Node ID 92aecf6c5c09de3f28789b08de0eeb919cd53878 # Parent ee17f62c8341f33c713a72e96a010495494ff32c bug: remove exec that re-raises exception for python 2 (hexora) Eliminate code path for python 2 when handling an unexpected exception. It exec'ed code to reraise exception. Python 2 not supported anymore. diff -r ee17f62c8341 -r 92aecf6c5c09 roundup/cgi/client.py --- a/roundup/cgi/client.py Sun Apr 05 17:44:02 2026 -0400 +++ b/roundup/cgi/client.py Sun Apr 05 17:49:21 2026 -0400 @@ -2357,9 +2357,7 @@ # receive an error message, and the adminstrator will # receive a traceback, albeit with less information # than the one we tried to generate above. - if sys.version_info[0] > 2: - raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) - exec('raise exc_info[0], exc_info[1], exc_info[2]') # nosec + raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) def renderError(self, error, response_code=400, use_template=True): self.response_code = response_code