From 69d7a4d8047af74b6a4e1343a8542b4773f42275 Mon Sep 17 00:00:00 2001 From: Medovikov Yakov Date: Tue, 4 Feb 2020 17:19:16 +0300 Subject: [PATCH] [TRAVELQA-530] - fix: do not fail, if no request_timeout is set --- reqtools/sessions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reqtools/sessions.py b/reqtools/sessions.py index d78521b..5203b55 100644 --- a/reqtools/sessions.py +++ b/reqtools/sessions.py @@ -18,8 +18,7 @@ def __init__(self, base_url: str, *, prefix: str = None, request_timeout: int = self._base_url = base_url self._prefix = prefix - if request_timeout: - self._request_timeout = request_timeout + self._request_timeout = request_timeout def __repr__(self): return f'{self.__class__.__name__}({self.url})'