Skip to content

Commit

Permalink
fix: improve mediafusion validation on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
dreulavelle committed Nov 21, 2024
1 parent 72f6813 commit b5bfc13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/program/services/scrapers/mediafusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ def validate(self) -> bool:

try:
response = self.request_handler.execute(HttpMethod.POST, url, overriden_response_type=ResponseType.DICT, json=payload, headers=headers)
if not response.data or response.data["status"] != "success":
logger.error(f"Failed to encrypt user data: {response.data['message']}")
return False
self.encrypted_string = response.data["encrypted_str"]
except Exception as e:
logger.error(f"Failed to encrypt user data: {e}")
Expand Down

0 comments on commit b5bfc13

Please sign in to comment.