Skip to content

driver_stats doesn't appear to parse the response correctly #74

@dfaulken

Description

@dfaulken

I receive the error TypeError: list indices must be integers or slices, not str here:

pyracing/pyracing/client.py

Lines 290 to 291 in 3cea16a

return [historical_data.DriverStats(x) for
x in response.json()["d"]["r"]]

Haven't examined the response personally, but wondering if this is because multiple driver records are returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions