Skip to content

Commit 4e8c766

Browse files
BartyBoi1128s19110
andauthored
Update docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-390/REAME.md
Surrounding "except" in backticks Co-authored-by: Hubert Daniszewski <[email protected]> Signed-off-by: BartyBoi1128 <[email protected]>
1 parent 8e86930 commit 4e8c766

File tree

1 file changed

+1
-1
lines changed
  • docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-390

1 file changed

+1
-1
lines changed

docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-390/REAME.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For instance, catching a bare `except` causes a user to be unable to stop a scri
2525

2626
Note that using `except Exception` is still too broad as per [CWE-755: Improper Handling of Exceptional Conditions](https://github.com/ossf/wg-best-practices-os-developers/blob/main/docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-755/README.md) and that a more specific exception handling is preferred.
2727

28-
The `noncompliant01.py` code demonstrates a bare except on a `ZeroDivisionError` and must be run on the command line in order to experience the issue.
28+
The `noncompliant01.py` code demonstrates a bare `except` on a `ZeroDivisionError` and must be run on the command line in order to experience the issue.
2929

3030
*[noncompliant01.py](noncompliant01.py):*
3131

0 commit comments

Comments
 (0)