Files
codeql/python/ql/examples/snippets/tryfinally.ql
2019-07-26 17:47:11 +02:00

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