Skip to content

Commit e2dc9f8

Browse files
committed
DOC: Suggest raise from syntax
1 parent 323663f commit e2dc9f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ One your PR is ready a member of the development team will review your changes t
116116
In general, do not catch exceptions without good reason.
117117
For non-fatal exceptions, log the exception as a warning and add more information about what may have caused the error.
118118

119-
If you do need to catch an exception, raise a new exception using ``raise_from(NewException("message"), oldException)`` from ``future``.
119+
If you do need to catch an exception, raise a new exception using ``raise NewException("message") from oldException)``.
120120
Do not log this, as it creates redundant/confusing logs.
121121

122122
#### Testing

0 commit comments

Comments
 (0)