Skip to content

Commit ed38c65

Browse files
authored
Fixing issue where incorrect workspace was being set as None (#71)
1 parent 821a777 commit ed38c65

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "socketdev"
7-
version = "3.0.31"
7+
version = "3.0.32"
88
requires-python = ">= 3.9"
99
dependencies = [
1010
'requests',

socketdev/fullscans/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,11 @@ def post(
808808
):
809809
print("Removing pull_request param from FullScanParams as it is None, 0, or not an integer")
810810
params_dict.pop("pull_request")
811+
812+
if hasattr(params, 'workspace') and params.workspace is None:
813+
print("Removing workspace param from FullScanParams as it is None")
814+
params_dict.pop("workspace")
815+
811816
params_arg = urllib.parse.urlencode(params_dict)
812817
path = "orgs/" + org_slug + "/full-scans?" + str(params_arg)
813818

socketdev/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.0.31"
1+
__version__ = "3.0.32"

0 commit comments

Comments
 (0)