Skip to content

Commit c671c76

Browse files
committed
Fixed check for the right status code
1 parent 36212a1 commit c671c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socketdev/repos/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def post(self, org_slug: str, **kwargs) -> dict:
135135
payload = json.dumps(params)
136136
response = self.api.do_request(path=path, method="POST", payload=payload)
137137

138-
if response.status_code == 200:
138+
if response.status_code == 201:
139139
result = response.json()
140140
return result
141141

0 commit comments

Comments
 (0)