We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49efbca commit 9890c16Copy full SHA for 9890c16
docs/Secure-Coding-Guide-for-Python/CWE-664/CWE-584/compliant01.py
@@ -1,9 +1,9 @@
1
# SPDX-FileCopyrightText: OpenSSF project contributors
2
# SPDX-License-Identifier: MIT
3
-
+
4
"""Compliant Code Example"""
5
6
7
def do_logic():
8
try:
9
raise Exception
@@ -12,8 +12,8 @@ def do_logic():
12
# return statement goes here
13
# when exception is raised conditionally
14
return True
15
16
17
#####################
18
# exploiting above code example
19
0 commit comments