Skip to content

Commit f2905b8

Browse files
authored
fix: Fix order in getattr calls of get (#919)
1 parent 61a3017 commit f2905b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interactions/client/get.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def _check():
235235

236236
elif force_http:
237237
_objects.clear()
238-
_func = getattr(http_name, client._http)
238+
_func = getattr(client._http, http_name)
239239
for _id in kwargs.get(kwarg_name):
240240
_kwargs = kwargs
241241
_kwargs.pop(kwarg_name)
@@ -244,7 +244,7 @@ def _check():
244244
return _http_request(_obj, http=client._http, request=_objects)
245245

246246
else:
247-
_func = getattr(http_name, client._http)
247+
_func = getattr(client._http, http_name)
248248
for _index, __obj in enumerate(_objects):
249249
if __obj is None:
250250
_id = kwargs.get(kwarg_name)[_index]

0 commit comments

Comments
 (0)