File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/statement Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -62,27 +62,27 @@ public Object execute(VirtualFrame frame) {
62
62
} catch (PException ex ) {
63
63
catchException (frame , ex );
64
64
return PNone .NONE ;
65
- } catch (Throwable t ) {
65
+ } catch (Exception e ) {
66
66
if (!seenException ) {
67
67
CompilerDirectives .transferToInterpreterAndInvalidate ();
68
68
seenException = true ;
69
69
}
70
70
71
71
if (PythonOptions .getOption (getContext (), CatchAllExceptions )) {
72
- if (t instanceof ControlFlowException ) {
73
- throw t ;
72
+ if (e instanceof ControlFlowException ) {
73
+ throw e ;
74
74
} else {
75
- PException pe = new PException (getBaseException (t ), this );
75
+ PException pe = new PException (getBaseException (e ), this );
76
76
try {
77
77
catchException (frame , pe );
78
78
} catch (PException pe_thrown ) {
79
79
if (pe_thrown != pe ) {
80
- throw t ;
80
+ throw e ;
81
81
}
82
82
}
83
83
}
84
84
} else {
85
- throw t ;
85
+ throw e ;
86
86
}
87
87
}
88
88
return orelse .execute (frame );
You can’t perform that action at this time.
0 commit comments