def __call__(self, form, field):
        if field.csrf_token:
            if field.csrf_token not in self.values:
                if self.message is None:
                    #self.message = field.gettext(u'The form expired.')
                    self.message = 'The form expired.'

                raise ValueError(self.message)
            else:
                self.values.remove(field.csrf_token)
dataset/ETHPy150Open moraes/tipfy/tipfyext/wtforms/validators.py/CsrfToken.__call__/original