Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datetime formatting Value Error #15

Open
djrcawley opened this issue Jun 9, 2023 · 0 comments
Open

Datetime formatting Value Error #15

djrcawley opened this issue Jun 9, 2023 · 0 comments

Comments

@djrcawley
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant