Skip to content

Commit

Permalink
Merge branch 'mainline' into dev/richard/polars
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-rogers authored Nov 18, 2024
2 parents 2866ede + 301453c commit cd21e2d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions python/whylogs/api/whylabs/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,13 @@ def upload_reference_profiles(self, profile_aliases: Dict[str, ResultSet]) -> Un

org_id = self.config.require_org_id()
dataset_id = self.config.require_default_dataset_id()
response: GetProfileObservatoryLinkResponse = self._whylabs_log_api.value.get_profile_observatory_link(
dataset_id, org_id, request
)
try:
response: GetProfileObservatoryLinkResponse = self._whylabs_log_api.value.get_profile_observatory_link(
dataset_id, org_id, request
)
except Exception as e:
logger.info(f"Convenience profile links could not be generated for the sucessfully uploading profiles: {e}")
return NotSupported()

return UploadResult(
viewing_url=response.observatory_url,
Expand Down Expand Up @@ -331,6 +335,7 @@ def upload_batch_profile(self, profile: ResultSet) -> Union[UploadResult, NotSup
)
except Exception as e:
logger.info(f"Convenience profile links could not be generated for the sucessfully uploading profiles: {e}")
return NotSupported()

profile_url = response.observatory_url if response else ""
individual_urls = response.individual_observatory_urls if response else None
Expand Down

0 comments on commit cd21e2d

Please sign in to comment.