Mercurial > p > roundup > code
changeset 8554:92aecf6c5c09
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.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 05 Apr 2026 17:49:21 -0400 |
| parents | ee17f62c8341 |
| children | 98fb176224fc |
| files | roundup/cgi/client.py |
| diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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
