FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/python/ql/examples/snippets/tryfinally.ql at codeql-cli-2.19.2 · github/codeql · GitHub
github
/
codeql
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10.1k
Code
Issues
1k
Pull requests
470
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
python
/
ql
/
examples
/
snippets
/
tryfinally.ql
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (14 loc) · 297 Bytes
Breadcrumbs
codeql
/
python
/
ql
/
examples
/
snippets
/
tryfinally.ql
Copy path
File metadata and controls
16 lines (14 loc) · 297 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
* @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
Back
|
FazBrowse Home
|
New Git URL