Skip to content

Attempting to get a market that does not exist results in a strange error #12

@antazoey

Description

@antazoey

If the market does not exist, you get a KeyError at a strange spot

def parse_market(self, data):
    book_price_decimals=data["book_price_decimals"]
...
KeyError: 'asset_id'

Before trying to parse, we should check the response data and raise a custom MarketNotFoundError or something alike

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions