{"action":"created","issue":{"url":"https://api.github.com/repos/wtforms/wtforms/issues/318","repository_url":"https://api.github.com/repos/wtforms/wtforms","labels_url":"https://api.github.com/repos/wtforms/wtforms/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/wtforms/wtforms/issues/318/comments","events_url":"https://api.github.com/repos/wtforms/wtforms/issues/318/events","html_url":"https://github.com/wtforms/wtforms/issues/318","id":199641575,"node_id":"MDU6SXNzdWUxOTk2NDE1NzU=","number":318,"title":"IntegerField raises an exception if None sent","user":{"login":"fchennouf","id":10494756,"node_id":"MDQ6VXNlcjEwNDk0NzU2","avatar_url":"https://avatars1.githubusercontent.com/u/10494756?v=4","gravatar_id":"","url":"https://api.github.com/users/fchennouf","html_url":"https://github.com/fchennouf","followers_url":"https://api.github.com/users/fchennouf/followers","following_url":"https://api.github.com/users/fchennouf/following{/other_user}","gists_url":"https://api.github.com/users/fchennouf/gists{/gist_id}","starred_url":"https://api.github.com/users/fchennouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchennouf/subscriptions","organizations_url":"https://api.github.com/users/fchennouf/orgs","repos_url":"https://api.github.com/users/fchennouf/repos","events_url":"https://api.github.com/users/fchennouf/events{/privacy}","received_events_url":"https://api.github.com/users/fchennouf/received_events","type":"User","site_admin":false},"labels":[{"id":55885101,"node_id":"MDU6TGFiZWw1NTg4NTEwMQ==","url":"https://api.github.com/repos/wtforms/wtforms/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-01-09T19:34:49Z","updated_at":"2018-06-13T00:33:32Z","closed_at":"2018-06-13T00:27:44Z","author_association":"NONE","body":"Hello,\r\n\r\nI have a problem with IntegerField when None is sent as a value, it raises an exception in process_formdata\r\n>def process_formdata(self, valuelist):\r\n>        if valuelist:\r\n>            try:\r\n>               self.data = int(valuelist[0])\r\nE               TypeError: int() argument must be a string or a number, not 'NoneType'\r\n\r\nIn addition to valuelist, we should check the 0 value if its not None before using it to avoid this problem. "},"comment":{"url":"https://api.github.com/repos/wtforms/wtforms/issues/comments/396776567","html_url":"https://github.com/wtforms/wtforms/issues/318#issuecomment-396776567","issue_url":"https://api.github.com/repos/wtforms/wtforms/issues/318","id":396776567,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njc3NjU2Nw==","user":{"login":"ergo","id":33021,"node_id":"MDQ6VXNlcjMzMDIx","avatar_url":"https://avatars3.githubusercontent.com/u/33021?v=4","gravatar_id":"","url":"https://api.github.com/users/ergo","html_url":"https://github.com/ergo","followers_url":"https://api.github.com/users/ergo/followers","following_url":"https://api.github.com/users/ergo/following{/other_user}","gists_url":"https://api.github.com/users/ergo/gists{/gist_id}","starred_url":"https://api.github.com/users/ergo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ergo/subscriptions","organizations_url":"https://api.github.com/users/ergo/orgs","repos_url":"https://api.github.com/users/ergo/repos","events_url":"https://api.github.com/users/ergo/events{/privacy}","received_events_url":"https://api.github.com/users/ergo/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T00:33:32Z","updated_at":"2018-06-13T00:33:32Z","author_association":"NONE","body":"@davidism This can happen when someone for example validates JSON payloads with wtforms I think."}}
{"actor":{"display_login":"ergo"}}