catch error when sha returns an empty result