Skip to content

Commit

Permalink
use kwarg (required for Session)
Browse files Browse the repository at this point in the history
 * requests.api.put has data as a kwarg with default value None so
   this was why requests.get(url, data) worked
  • Loading branch information
JunAishima committed Oct 9, 2024
1 parent 80d718a commit 6c3161c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conftrak/client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _get(url, params):
Results of the query
"""
r = session.get(url, ujson.dumps(params))
r = session.get(url, params=ujson.dumps(params))
if r.status_code == 500 and "found" in r.reason:
raise ConfTrakNotFoundException(r.reason)
r.raise_for_status()
Expand Down

0 comments on commit 6c3161c

Please sign in to comment.