Skip to content

Datetime formatting Value Error #15

@djrcawley

Description

@djrcawley

Issue:
When searching for flights from JFK to BOG, airline LATAM causes a ValueError in the _classify_arg.

image

Root Cause:
The first if statement is:

if ('AM' in arg or 'PM' in arg) and len(self._times) < 2:

Since airline LATAM contains 'AM', it tries to classify the argument as a datetime object when instead it is the name of an airline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions