I am trying to handle not none or empty list exception while using boto3. I want to know is there any good way of pythonic code to write this.

```
buckets_list= None
try:        
    my_region = os.environ['AWS_REGION']
    if my_region == 'us-east-1':
        try:
            s3 = boto3.client('s3')
            buckets_list = s3.list_buckets()
        except Exception as err:
            logging.error('Exception was thrown in connection %s' % err)
            print("Error in connecting and listing bucket{}".format(err))
        if buckets_list['Buckets']:
            # Search for all buckets.
            for bucket in buckets_list['Buckets']:
            # my code follow to get other things...

        else:
            print("Buckets are empty in this region")
    else:
        print("Region not available")
        raise Exception("Exception was thrown in Region")    

except Exception as err:
    logging.error('Exception was thrown %s' % err)
    print("Error is {}".format(err))
    raise err

```

Is this the right way or any suggestions would help.