Skip to content

Import fails when race has no pilot entries #24

Description

@vikibaarathi

Plugin: multigp_toolkit
File: rsimporter.py, line 413

Problem

When importing a MultiGP race that has no pilots registered, import_class crashes with:

KeyError: 'entries'

The code assumes race_data["entries"] always exists, but the MultiGP API omits the key when there are no entries.

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