[api] Treat timeout <= 0 as no timeout

This commit is contained in:
derrod 2021-12-30 17:42:18 +01:00
parent 013792f7b9
commit 3fed7d2614

View file

@ -47,7 +47,11 @@ class EPCAPI:
self.language_code = lc
self.country_code = cc
self.request_timeout = timeout
if timeout > 0:
self.request_timeout = timeout
else:
self.request_timeout = None
def update_egs_params(self, egs_params):
# update user-agent