Handle GitHub errors more gracefully