Skip to content

Commit 929ca7f

Browse files
authored
Added merge environmental settings to prepared request (#1811)
1 parent 1c50842 commit 929ca7f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

libs/labelbox/src/labelbox/client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,13 @@ def convert_value(value):
254254

255255
prepped: requests.PreparedRequest = request.prepare()
256256

257-
response = self._connection.send(prepped, timeout=timeout)
257+
settings = self._connection.merge_environment_settings(
258+
prepped.url, {}, None, None, None
259+
)
260+
261+
response = self._connection.send(
262+
prepped, timeout=timeout, **settings
263+
)
258264
logger.debug("Response: %s", response.text)
259265
except requests.exceptions.Timeout as e:
260266
raise labelbox.exceptions.TimeoutError(str(e))

0 commit comments

Comments
 (0)