Skydio / revup

Effortlessly create and manage pull requests without changing branches. Powers a stacked diffs workflow with python and git "plumbing" commands.
https://github.com/Skydio/revup
MIT License
309 stars 59 forks source link

github: Also catch ContentTypeError #145

Closed jerry-skydio closed 7 months ago

jerry-skydio commented 7 months ago

Try to get some more info from this trace

File "/home/jerry/revup/revup/github_real.py", line 78, in graphql r = await resp.json() File "/home/jerry/.local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1165, in json raise ContentTypeError( aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://api.github.com/graphql')

jerry-skydio commented 7 months ago

Reviews in this chain: └https://github.com/Skydio/revup/pull/145 github: Also catch ContentTypeError

jerry-skydio commented 7 months ago
# head base diff date summary
0 1fbfa9ec 8298f2cf diff Feb 2 11:46 AM 1 file changed, 2 insertions(+), 2 deletions(-)
1 742e28d1 8298f2cf diff Feb 2 11:59 AM 1 file changed, 1 insertion(+), 1 deletion(-)