mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-9715 Inconsistent "Too broad exception clauses" inspection
This commit is contained in:
@@ -6,6 +6,11 @@ try:
|
||||
except <weak_warning descr="Too broad exception clause">Exception</weak_warning>:
|
||||
pass
|
||||
|
||||
try:
|
||||
function_throws_exception()
|
||||
except <weak_warning descr="Too broad exception clause">BaseException</weak_warning>:
|
||||
pass
|
||||
|
||||
try:
|
||||
function_throws_exception()
|
||||
except ExceptionKlass:
|
||||
|
||||
Reference in New Issue
Block a user