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()