Skip to content

Commit

Permalink
Use proper exception and reset variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Nov 25, 2014
1 parent 0fe54cf commit 36cacbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private[spark] object Utils extends Logging {
if (dir.exists() || !dir.mkdirs()) {
dir = null
}
} catch { case e: IOException => ; }
} catch { case e: SecurityException => dir = null; }
}

registerShutdownDeleteDir(dir)
Expand Down

0 comments on commit 36cacbd

Please sign in to comment.