JeanExtreme002 / FlightRadarAPI

:airplane: Unofficial SDK for FlightRadar24 for Python 3 and NodeJS
https://pypi.org/project/FlightRadarAPI/
MIT License
286 stars 62 forks source link

Initialize instance FR with login #82

Closed vdbosschekoen closed 1 month ago

vdbosschekoen commented 1 month ago

Since the new version (1.3.32) released on 2/8/2024 there is an issue when you want to create an instance of the flightradar API using an user and password to use your own flightradar account.

from FlightRadar24 import FlightRadar24API
fr_api = FlightRadar24API(user=myuser,password=mypassword)

Then you receive the error AttributeError: 'FlightRadar24API' object has no attribute 'timeout'

I think the issue is in the class FlightRadar24API The line self.timeout: int = timeout must be placed before the login call, because the login function is using the timeout variable and this will be set after the login.

JeanExtreme002 commented 1 month ago

Fixed. Thank you for your report!