Skip to content

Commit 5a87dd3

Browse files
committed
fix(python): npe in request options merge method
1 parent ee33392 commit 5a87dd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clients/algoliasearch-client-python/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)