You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seams like openflights does not allow api calls anymore, there is a timestamp in shareDetails entry when loading reservation that contains timestamp
Traceback (most recent call last):
File "./checkin.py", line 101, in <module>
auto_checkin(reservation_number, first_name, last_name, verbose)
File "./checkin.py", line 66, in auto_checkin
airport_tz = openflights.timezone_for_airport(leg['departureAirport']['code'])
File "/usr/src/app/southwest/openflights.py", line 14, in timezone_for_airport
airport_tz = pytz.timezone(json.loads(tzresult.text)['airports'][0]['tz_id'])
File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered:
It seams like openflights does not allow api calls anymore, there is a timestamp in shareDetails entry when loading reservation that contains timestamp
The text was updated successfully, but these errors were encountered: