Skip to content

Commit 9422840

Browse files
Merge pull request #48 from drgarcia1986/master
fix simple typo at "No exception type(s) specified" @drgarcia1986 Thanks!
2 parents 9c1be92 + 2976367 commit 9422840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/correctness/no_exception_type_specified.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
No exception type(s) specified
22
==============================
33

4-
The function `divide` simply divides `a` by `b`. To avoid invalid calculations (e.g., a division by zero), a `try-except` block is added. This is valid and and ensures that the function always returns a result. However, by securing your code with the try clause, you might hide actual programming errors, e.g., that you pass a string or an object as `b`, instead of a number. By not specifying and exception type, you do not only hide this error but you loose also information about the error itself.
4+
The function `divide` simply divides `a` by `b`. To avoid invalid calculations (e.g., a division by zero), a `try-except` block is added. This is valid and ensures that the function always returns a result. However, by securing your code with the try clause, you might hide actual programming errors, e.g., that you pass a string or an object as `b`, instead of a number. By not specifying and exception type, you do not only hide this error but you loose also information about the error itself.
55

66
Anti-pattern
77
------------

0 commit comments

Comments
 (0)