Skip to content

Commit 96ae148

Browse files
committed
python: also override `getAHandler
(to get new result type)
1 parent d216460 commit 96ae148

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/ql/lib/semmle/python/Stmts.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ class Try extends Try_ {
408408

409409
override ExceptionHandler getHandler(int i) { result = Try_.super.getHandler(i) }
410410

411+
override ExceptionHandler getAHandler() { result = Try_.super.getAHandler() }
412+
411413
/** Gets a normal exception handler, `except`, of this try statement. */
412414
ExceptStmt getANormalHandler() { result = this.getAHandler() }
413415

0 commit comments

Comments
 (0)