py-gitea
py-gitea copied to clipboard
[BUG]: return errors when using requests_get() for /repos/{owner}/{repo}/pulls/{index}.{difftype}
When using requests_get() method to request /repos/{owner}/{repo}/pulls/{index}.{difftype}, the method raises JSONDecodeError("Expecting value", s, err.value) from None exception. I think the cause is that the response body of this Gitea API returns text file rather than a dict.