try:
auth = Auth.Token(os.getenv("GH_TOKEN"))
g = Github(auth=auth)
except
So if the exception was because the credentials were bad, what would that exception be called based of the documentation below? Tried a few things but didn't seem to work so I assume I am not approaching this the right way.
https://pygithub.readthedocs.io/en/stable/utilities.html#module-github.GithubException