handling bad GET responses from github API without crashing