Skip to content

Commit 20fac2d

Browse files
algolia-botFluf22
andcommitted
fix(python): npe in request options merge method (generated)
algolia/api-clients-automation#4612 Co-authored-by: Thomas Raffray <[email protected]>
1 parent 82f3b0e commit 20fac2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

algoliasearch/http/request_options.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ def merge(
8989
_user_request_options = user_request_options
9090

9191
for key, value in _user_request_options.items():
92-
request_options[key].update(value)
92+
if request_options[key] is None:
93+
request_options[key] = value
94+
else:
95+
request_options[key].update(value)
9396

9497
return self.from_dict(request_options)

0 commit comments

Comments
 (0)