Skip to content

Commit

Permalink
better warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws committed Aug 29, 2023
1 parent b7ff40d commit dd7a3f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cid/helpers/quicksight/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,9 +1049,9 @@ def get_dataset_refresh_schedules(self, dataset_id):
)
return refresh_schedules.get("RefreshSchedules")
except self.client.exceptions.ResourceNotFoundException as exc:
raise CidError(f'DataSource {dataset_id} does not exist') from exc
raise CidError(f'DataSet {dataset_id} does not exist') from exc
except self.client.exceptions.AccessDeniedException as exc:
raise CidError(f'No quicksight:ListDataSets permission') from exc
raise CidError(f'AccessDenied when reading refresh schedule for {dataset_id}') from exc
except Exception as exc:
raise CidError(f'Unable to list refresh schedules for dataset {dataset_id}: {str(exc)}') from exc

Expand Down Expand Up @@ -1080,7 +1080,7 @@ def ensure_dataset_refresh_schedule(self, dataset_id, schedules: list):
default=default_timezone
)
if not schedule_frequency_timezone:
logger.warning(f'Cannot get timezone. Please provide --timezone parameter. Please make sure scheduled refresh is configured manualy.')
logger.warning('Cannot get timezone. Please provide --timezone parameter. Please make sure scheduled refresh is configured manualy.')
return

for schedule in schedules:
Expand Down

0 comments on commit dd7a3f0

Please sign in to comment.