We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07b9737 commit 92b1189Copy full SHA for 92b1189
miss_islington/__main__.py
@@ -38,10 +38,12 @@ async def main(request):
38
# Give GitHub some time to reach internal consistency.
39
await asyncio.sleep(1)
40
await router.dispatch(event, gh)
41
- try:
42
- print(f"GH requests remaining: {gh.rate_limit.remaining}")
43
- except AttributeError:
44
- pass
+ try:
+ print(
+ f"GH requests remaining: {gh.rate_limit.remaining}/{gh.rate_limit.limit}, reset time: {gh.rate_limit.reset_datetime:%b-%d-%Y %H:%M:%S %Z}"
+ )
45
+ except AttributeError:
46
+ pass
47
return web.Response(status=200)
48
except Exception as exc:
49
traceback.print_exc(file=sys.stderr)
0 commit comments