Skip to content

Commit

Permalink
return False for databases that do not exist - lf exception
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpzx committed Sep 12, 2024
1 parent 5358677 commit 7e51219
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,9 @@ def get_database(self, database_name):
try:
database = self._client.get_database(Name=database_name)
return database
except self._client.exceptions.EntityNotFoundException:
return False
except ClientError as e:
raise Exception(f'Error checking if database {database_name} exists: {e}')
log.exception(f'Database not found, exception: {e}')
return False

def create_database(self, database_name, bucket):
try:
Expand Down

0 comments on commit 7e51219

Please sign in to comment.