Add error handling in getSha
Merge pull request #71 from chingjun/patch-1

Add error handling in getSha