added an error to the except for when the bucket name is wrong