Skip to content

Commit

Permalink
fix:fix error to 201 instead of 200
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdellahitech committed Jan 9, 2024
1 parent 4f75f3e commit 4e7c6b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hrflow_connectors/connectors/talentsoft/warehouse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import pdb
import mimetypes
import typing as t
from datetime import date
Expand Down Expand Up @@ -253,7 +254,8 @@ def post_applicant_front(client_url, token, applicant, files, job_reference=None
data=applicant,
files=files,
)
if response.status_code == 200:
pdb.set_trace()
if response.status_code == 201:
return response.json()
raise Exception(response.text)

Expand Down

0 comments on commit 4e7c6b1

Please sign in to comment.