We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83d22be commit 34d5213Copy full SHA for 34d5213
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/exception/PException.java
@@ -355,7 +355,7 @@ RuntimeException throwException() {
355
@ExportMessage
356
@SuppressWarnings("static-method")
357
boolean hasSourceLocation() {
358
- return getLocation() != null;
+ return getLocation() != null && getLocation().getEncapsulatingSourceSection() != null;
359
}
360
361
@ExportMessage(name = "getSourceLocation")
0 commit comments