Skip to content

Commit f82c69e

Browse files
committed
RDBC-807 Handle None in RequestExecutor.http_session
1 parent 1446693 commit f82c69e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ravendb/http/request_executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ def close(self):
129129
self.__update_topology_timer.cancel()
130130

131131
self._dispose_all_failed_nodes_timers()
132-
self.__http_session.close()
132+
if self.__http_session is not None:
133+
self.__http_session.close()
133134

134135
@property
135136
def certificate_path(self) -> str:
@@ -169,7 +170,6 @@ def http_session(self):
169170
return self.__http_session
170171

171172
def __create_http_session(self) -> requests.Session:
172-
# todo: check if http client name is required
173173
session = requests.session()
174174
session.cert = self.__certificate_path
175175
session.verify = self.__trust_store_path if self.__trust_store_path else True

0 commit comments

Comments
 (0)