Skip to content

Commit 9890c16

Browse files
Update docs/Secure-Coding-Guide-for-Python/CWE-664/CWE-584/compliant01.py
Co-authored-by: Bartlomiej Karas <[email protected]> Signed-off-by: andrew-costello <[email protected]>
1 parent 49efbca commit 9890c16

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/Secure-Coding-Guide-for-Python/CWE-664/CWE-584/compliant01.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# SPDX-FileCopyrightText: OpenSSF project contributors
22
# SPDX-License-Identifier: MIT
3-
3+
44
"""Compliant Code Example"""
5-
6-
5+
6+
77
def do_logic():
88
try:
99
raise Exception
@@ -12,8 +12,8 @@ def do_logic():
1212
# return statement goes here
1313
# when exception is raised conditionally
1414
return True
15-
16-
15+
16+
1717
#####################
1818
# exploiting above code example
1919
#####################

0 commit comments

Comments
 (0)