rspec/rules/S5704/python/comments-and-links.adoc
2021-06-02 20:44:38 +02:00

6 lines
394 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

=== Related: RSPEC-5747
=== On 2020-01-29T13:56:33Z Nicolas Harraudeau Wrote:
This rule is similar to RSPEC-1163 but the problem is a little different. It is perfectly ok to raise an exception in a ``++finally++`` block in python. Python will automatically link the new exception to any exception raised in the ``++try++`` block. However a bare ``++raise++`` is problematic as it can fail.