Closed GregoirePelegrin closed 3 months ago
smth like this?
timing = time.time()
###
except requests.exceptions.ConnectionError or TimeoutError or requests.exceptions.ConnectTimeout \
or AttributeError:
self.out_filename = "1" + self.out_filename
if timing < self.finish and len(self.out_filename) < 20:
print("Connection error " + str(datetime.now()) + ". reconnectng...")
Solved on PR #80
Is your feature request related to a problem? Please describe.
try ... catch
.requests
has this parameter. This should be a parameter of theAPIRequest
class (maybe a default value, which could be overwritten for each instance?) and could also be a parameter of theFlightRadar24API
class (as primary source ofAPIRequest
instances)