Skip to content

Commit c586e4e

Browse files
Vaghinak BasentsyanVaghinak Basentsyan
authored andcommitted
Merge branch 're-design-sdk' of https://github.com/superannotateai/superannotate-python-sdk into re-design-sdk
2 parents a2747df + 71ea1ef commit c586e4e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/superannotate/lib/infrastructure/services.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@ def __init__(self, api_url: str, auth_token: str, logger, paginate_by=None):
3131
self.logger = logger
3232
self._paginate_by = paginate_by
3333
self.team_id = auth_token.split("=")[-1]
34-
self._session = None
3534

3635
@timed_lru_cache(seconds=360)
3736
def get_session(self):
38-
if not self._session:
39-
self._session = requests.Session()
40-
self._session.headers.update(self.default_headers)
41-
return self._session
37+
session = requests.Session()
38+
session.headers.update(self.default_headers)
39+
return session
4240

4341
@property
4442
def default_headers(self):

0 commit comments

Comments
 (0)