mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
16 lines
295 B
Plaintext
16 lines
295 B
Plaintext
/**
|
|
* @id py/examples/tryfinally
|
|
* @name Try-finally statements
|
|
* @description Finds try-finally statements without an exception handler
|
|
* @tags try
|
|
* finally
|
|
* exceptions
|
|
*/
|
|
|
|
import python
|
|
|
|
from Try t
|
|
where exists(t.getFinalbody())
|
|
and not exists(t.getAHandler())
|
|
select t
|