def CEP(value): try: format_cep(value) except ValueError as e: raise Invalid(e) return clean_id(value)