def get_bucket(conn, bucket_id):
 bucket = conn.get_bucket(bucket_id)
 if (not bucket):
  msg = (_('Could not find bucket with ID %(bucket_id)s') % locals())
  LOG.debug(msg)
  raise exception.NotFound(msg)
 return bucket

def get_bucket ( conn , bucket_id ) : bucket = conn . get_bucket ( bucket_id ) if ( not bucket ) : msg = ( _ ( 'Could not find bucket with ID %(bucket_id)s' ) % locals ( ) ) LOG . debug ( msg ) raise exception . NotFound ( msg ) return bucket
get a bucket from an s3 connection .