Skip to content

Getting AttributeError: 'NoneType' object has no attribute 'startswith' when trying to get the repo_name #1399

@srihari15

Description

@srihari15

The application works fine but suddenly, the error pops up.

File "/Users/sriharichandramouli/Documents/Git_Auto_comment/git_update.py", line 19, in job
repo = g.get_repo(repo_name[i])
File "/usr/local/lib/python3.7/site-packages/github/MainClass.py", line 330, in get_repo
"GET", "%s%s" % (url_base, full_name_or_id)
File "/usr/local/lib/python3.7/site-packages/github/Requester.py", line 322, in requestJsonAndCheck
verb, url, parameters, headers, input, self.__customConnection(url)
File "/usr/local/lib/python3.7/site-packages/github/Requester.py", line 345, in __check
raise self.__createException(status, responseHeaders, output)
File "/usr/local/lib/python3.7/site-packages/github/Requester.py", line 379, in __createException
elif status == 403 and output.get("message").startswith(
AttributeError: 'NoneType' object has no attribute 'startswith'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions