Skip to content

Commit 95cc560

Browse files
committed
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.
1 parent 47a4ba9 commit 95cc560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,7 @@ def renderContext(self):
19111911
if sys.version_info[0] > 2:
19121912
raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
19131913
else:
1914-
exec('raise exc_info[0], exc_info[1], exc_info[2]')
1914+
exec('raise exc_info[0], exc_info[1], exc_info[2]') # nosec
19151915

19161916
# these are the actions that are available
19171917
actions = (

0 commit comments

Comments
 (0)