Improve code readability in try-catch snippet
Update OS X