CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

Finds try-finally statements without an exception handler

import python

from Try t
where
  exists(t.getFinalbody()) and
  not exists(t.getAHandler())
select t