Skip to content

Commit d366374

Browse files
authored
1 parent 077e97b commit d366374

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cid/helpers/cur.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def find_cur(self):
222222
try:
223223
metadata = self.athena.get_table_metadata(table_name, cur_database)
224224
except self.athena.client.exceptions.MetadataException as exc:
225-
raise CidCritical(f'Provided cur-table-name "{table_name}" in database "{cur_database or self.athena.DatabaseName}" is not found. Please make sure the table exists.') from exc
225+
raise CidCritical(f'Provided cur-table-name "{table_name}" in database "{cur_database or self.athena.DatabaseName}" is not found. Please make sure the table exists. This could also indicate a LakeFormation permission issue, see our FAQ for help.') from exc
226226
res, message = self.table_is_cur(table=metadata, return_reason=True)
227227
if not res:
228228
raise CidCritical(f'Table {table_name} does not look like CUR. {message}')

cid/helpers/glue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def create_or_update_crawler(self, crawler_definition) -> None:
7373
self.client.update_crawler(**crawler_definition)
7474
except self.client.exceptions.ClientError as exc:
7575
if 'Service is unable to assume provided role' in str(exc):
76-
logger.info('attempt{attempt}: Retrying ') # sometimes newly created roles cannot be assumed right away
76+
logger.info(f'attempt{attempt}: Retrying ') # sometimes newly created roles cannot be assumed right away
7777
time.sleep(3)
7878
continue
7979
logger.error(crawler_definition)

cid/helpers/iam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def ensure_managed_policies_attached(self, role_name, policies_arns='') -> None:
7171
RoleName=role_name,
7272
PolicyArn=policy_arn,
7373
)
74-
logger.info('Attached {policy_arn} to the role {role_name}')
74+
logger.info(f'Attached {policy_arn} to the role {role_name}')
7575
except self.client.exceptions.ClientError as exc:
7676
logger.warning(f'Unable to attach policy {policy_arn} to {role_name}: {exc}')
7777

0 commit comments

Comments
 (0)