Open adosib opened 1 year ago
I'm curious what the response was to the call, because total
is required by the schema; unlike some keys in there, it's not optional. I think this is actually the right error, and the API sent an invalid response:
"change_status": {
"type": "object",
"properties": {
"total": {
"type": "integer"
},
"additions": {
"type": "integer"
},
"deletions": {
"type": "integer"
}
}
},
Getting an github3.exceptions.IncompleteResponse exception when there haven't been any changes in the gist revision.
Should be a quick fix but apparently everything is locked down so I can't issue a PR. Should just be a matter of changing this line from
self.total = self.change_status["total"]
toself.total = self.change_status.get("total")
Version Information
Minimum Reproducible Example
Can't figure out a way to easily make this reproducible but I've got some gist that in its revision history is not always getting changed and so I get the exception github3.exceptions.IncompleteResponse
Exception information
github3.exceptions.IncompleteResponse