File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
python/ql/lib/semmle/python Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1379,7 +1379,7 @@ class Try_ extends @py_Try, Stmt {
1379
1379
Stmt getHandler ( int index ) { result = this .getHandlers ( ) .getItem ( index ) }
1380
1380
1381
1381
/** Gets an exception handler of this try statement. */
1382
- ExceptionHandler getAHandler ( ) { result = this .getHandlers ( ) .getAnItem ( ) }
1382
+ Stmt getAHandler ( ) { result = this .getHandlers ( ) .getAnItem ( ) }
1383
1383
1384
1384
/** Gets the finally block of this try statement. */
1385
1385
StmtList getFinalbody ( ) { py_stmt_lists ( result , this , 4 ) }
Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ class Try extends Try_ {
422
422
result = this .getAnOrelse ( )
423
423
}
424
424
425
- override Stmt getHandler ( int i ) { result = Try_ .super .getHandler ( i ) }
425
+ override ExceptionHandler getHandler ( int i ) { result = Try_ .super .getHandler ( i ) }
426
426
427
427
/** Gets a normal exception handler, `except`, of this try statement. */
428
428
ExceptStmt getANormalHandler ( ) { result = this .getAHandler ( ) }
You can’t perform that action at this time.
0 commit comments