Skip to content

Commit

Permalink
fix: fix some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdellahitech committed Jan 5, 2024
1 parent ed606a7 commit 168c37d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hrflow_connectors/connectors/talentsoft/warehouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ def decode_unicode(input_str):
try:
return bytes(input_str, "utf-8").decode("unicode_escape")
except UnicodeDecodeError as e:
print(f"Error decoding Unicode: {e}")
return input_str


Expand Down Expand Up @@ -231,7 +230,7 @@ def get_talentsoft_auth_token(

def get_mime_type_with_mimetypes(filename):
if filename is None:
raise "application/octet-stream"
return "application/octet-stream"
mime_type, encoding = mimetypes.guess_type(filename)
return mime_type or "application/octet-stream"

Expand Down

0 comments on commit 168c37d

Please sign in to comment.