diff roundup/cgi/client.py @ 6014:6ed03d01491d

Bandit - ignore use of exec which re-raises exception This code path is taken for python2 which is missing the with_traceback to handle raising the outer exception from an inner exception halder.
author John Rouillard <rouilj@ieee.org>
date Tue, 31 Dec 2019 21:53:17 -0500
parents 54d0080769f9
children 380dec305c28
line wrap: on
line diff
--- a/roundup/cgi/client.py	Tue Dec 31 21:35:46 2019 -0500
+++ b/roundup/cgi/client.py	Tue Dec 31 21:53:17 2019 -0500
@@ -1911,7 +1911,7 @@
                 if sys.version_info[0] > 2:
                     raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
                 else:
-                    exec('raise exc_info[0], exc_info[1], exc_info[2]')
+                    exec('raise exc_info[0], exc_info[1], exc_info[2]')  # nosec
 
     # these are the actions that are available
     actions = (

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