From ffb582bd1b7da8f3ac6a4533665b70fcb0702aec Mon Sep 17 00:00:00 2001 From: Iakov GAN <82834333+iakov-aws@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:02:15 +0200 Subject: [PATCH] fix athena database error (#882) --- cid/helpers/athena.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cid/helpers/athena.py b/cid/helpers/athena.py index 27dbf825..7f709a9f 100644 --- a/cid/helpers/athena.py +++ b/cid/helpers/athena.py @@ -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()