Skip to content

Commit

Permalink
fix athena database error (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws authored Jul 9, 2024
1 parent 8e72caa commit ffb582b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cid/helpers/athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ def DatabaseName(self) -> str:
except Exception as exc:
if 'AccessDeniedException' in str(exc):
logger.warning(f'{type(exc)} - Missing athena:GetDatabase permission. Cannot verify existence of {self._DatabaseName} in {self.CatalogName}. Hope you have it there.')
return self._DatabaseName
raise
else:
raise
return self._DatabaseName
# Get AWS Athena databases
athena_databases = self.list_databases()

Expand Down

0 comments on commit ffb582b

Please sign in to comment.