Handle errors when getting price