Skip to content

Commit b9cb37f

Browse files
authored
Remove body on GET requests for ScaleGov (#211)
1 parent 3f2ee01 commit b9cb37f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

nucleus/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,8 @@ def make_request(
943943
"""
944944
if payload is None:
945945
payload = {}
946+
if requests_command is requests.get:
947+
payload = None
946948
return self._connection.make_request(payload, route, requests_command) # type: ignore
947949

948950
def handle_bad_response(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exclude = '''
2121

2222
[tool.poetry]
2323
name = "scale-nucleus"
24-
version = "0.5.4"
24+
version = "0.5.5"
2525
description = "The official Python client library for Nucleus, the Data Platform for AI"
2626
license = "MIT"
2727
authors = ["Scale AI Nucleus Team <nucleusapi@scaleapi.com>"]

0 commit comments

Comments
 (0)