def _get_int_param(request, param):
 try:
  int_param = utils.validate_integer(request.GET[param], param, min_value=0)
 except exception.InvalidInput as e:
  raise webob.exc.HTTPBadRequest(explanation=e.format_message())
 return int_param

def _get_int_param ( request , param ) : try : int_param = utils . validate_integer ( request . GET [ param ] , param , min_value = 0 ) except exception . InvalidInput as e : raise webob . exc . HTTPBadRequest ( explanation = e . format_message ( ) ) return int_param
extract integer param from request or fail .