Skip to content

Commit deb4dbc

Browse files
committed
Also handle SecurityException.
1 parent d1866c4 commit deb4dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ Object stat(String path, boolean followSymlinks) {
516516
TruffleFile canonical;
517517
try {
518518
canonical = f.getCanonicalFile();
519-
} catch (IOException e) {
519+
} catch (IOException | SecurityException e) {
520520
// best effort
521521
canonical = f.getAbsoluteFile();
522522
}

0 commit comments

Comments
 (0)