Skip to content

Commit 36cacbd

Browse files
committed
Use proper exception and reset variable.
1 parent 0fe54cf commit 36cacbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ private[spark] object Utils extends Logging {
262262
if (dir.exists() || !dir.mkdirs()) {
263263
dir = null
264264
}
265-
} catch { case e: IOException => ; }
265+
} catch { case e: SecurityException => dir = null; }
266266
}
267267

268268
registerShutdownDeleteDir(dir)

0 commit comments

Comments
 (0)