> I will change it and take the exception IndexError: list index out of range.

just remove it instead. I now understand why you put it there in the first place. There is no need for catching `ValueError` as the `try` block does not use the python ìnt` function` as in `getPlayerPings`