Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[log-classifier] Handle None value when getting a log line (#4722)
Log classifier fails on this job https://github.com/pytorch/pytorch/actions/runs/6618894647/job/17986337626. The issue can be reproduced by running, which ends up with an `Internal Server Error` error: ``` curl "https://vwg52br27lx5oymv4ouejwf4re0akoeg.lambda-url.us-east-1.on.aws/?job_id=17986337626" ``` It turns out that `log.lines.get(&i)` can be None while gathering the failure context. This change handles the None value correctly.
- Loading branch information