sanitizers / chronographer-github-app

Your severe chronographer robot who is watching you record all the news to change note files!
https://github.com/apps/chronographer
GNU General Public License v3.0
11 stars 3 forks source link

IndexError: list index out of range #42

Open sentry-io[bot] opened 2 months ago

sentry-io[bot] commented 2 months ago

Sentry Issue: CHRONOGRAPHER-H

CancelledError: 
  File "asyncio/queues.py", line 166, in get
    await getter

IndexError: list index out of range
(12 additional frame(s) were not displayed)
...
  File "chronographer/event_handlers.py", line 112, in on_pr
    event.data['check_run']['check_suite']['pull_requests'][0]

Upvote & Fund

Fund with Polar

webknjaz commented 2 months ago

This is kinda known: https://github.com/sanitizers/chronographer-github-app#known-issueslimitations. Perhaps we should log a warning and bail for now. Alternatively, we could try tracking the previous events and map this to PRs somehow...