def get_int_arg(request, field, default=None):
    try:
        val = int(request.arguments.get(field, [default])[0])
    except (ValueError, TypeError):
        val = default
    return val
Handle validation of this token field.
dataset/ETHPy150Open YelpArchive/pushmanager/pushmanager/core/util.py/get_int_arg--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/wtforms/csrf/core.py/CSRFTokenField.pre_validate