-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Fare check index error #224
Comments
Thanks for testing this issue out in multiple environments to confirm it is present in every situation. Is the flight a round-trip flight? To provide more debugging information, could you add the line |
All of my flights are one-way.
|
I'm hitting this as well and believe it's probably due to a one-way flight. I can make that change to test |
I added to the util.make_request I haven't had time to go through all the code, but it looks like the URL is correct. Any thoughts? |
@camjones1708 I am working on this now. The issue seems to be that the flight number from the It seems like Southwest has been refactoring a lot of their mobile website and this issue is an effect of that. In the response k3vint sent, it seems that the flights are separated by --- a/lib/flight.py
+++ b/lib/flight.py
@@ -64,6 +64,6 @@ class Flight:
def _get_flight_number(self, flights: JSON) -> str:
flight_number = ""
for flight in flights:
- flight_number += flight["number"] + "/"
+ flight_number += flight["number"] + "\u200b/\u200b"
- return flight_number.rstrip("/")
+ return flight_number.rstrip("\u200b/\u200b") |
🔥 works like a charm! |
This fixed the issue for me as well! |
Thanks for testing everyone! This fix is applied in the develop branch/image |
awesome.. works again! |
Version
7.2
Browser Version
121.0.6167.160
Description
This started happening 3-4 days ago. Fare check causes IndexError. I've tried using account login and individual reservations in config. Also tried on a Linux and Windows machine. Same error every time.
To Reproduce
Run a fare check, by account login or by reservations
Expected Behavior
No response
Relevant logs and program output
Additional context
Linux Mint and Windows 10, without docker
The text was updated successfully, but these errors were encountered: