{"action":"opened","issue":{"url":"https://api.github.com/repos/magfest/ubersystem/issues/1564","labels_url":"https://api.github.com/repos/magfest/ubersystem/issues/1564/labels{/name}","comments_url":"https://api.github.com/repos/magfest/ubersystem/issues/1564/comments","events_url":"https://api.github.com/repos/magfest/ubersystem/issues/1564/events","html_url":"https://github.com/magfest/ubersystem/issues/1564","id":112706161,"number":1564,"title":"need better error message when using invalid attendee UUID","user":{"login":"binary1230","id":5413064,"avatar_url":"https://avatars.githubusercontent.com/u/5413064?v=3","gravatar_id":"","url":"https://api.github.com/users/binary1230","html_url":"https://github.com/binary1230","followers_url":"https://api.github.com/users/binary1230/followers","following_url":"https://api.github.com/users/binary1230/following{/other_user}","gists_url":"https://api.github.com/users/binary1230/gists{/gist_id}","starred_url":"https://api.github.com/users/binary1230/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binary1230/subscriptions","organizations_url":"https://api.github.com/users/binary1230/orgs","repos_url":"https://api.github.com/users/binary1230/repos","events_url":"https://api.github.com/users/binary1230/events{/privacy}","received_events_url":"https://api.github.com/users/binary1230/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magfest/ubersystem/labels/low-priority","name":"low-priority","color":"5319e7"},{"url":"https://api.github.com/repos/magfest/ubersystem/labels/newcomer","name":"newcomer","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-22T00:34:24Z","updated_at":"2015-10-22T00:34:24Z","closed_at":null,"body":"Example:\r\nhttps://prime.uber.magfest.org/uber/registration/form?id=ffffffff-ffff-ffff-ffff-ffffffffffff\r\n\r\nExpected:\r\nerror message that says \"This attendee does not exist, invalid UUID\"\r\n\r\nActual:\r\nSlightly obscure non-obvious traceback:\r\n\r\n500 Internal Server Error\r\n\r\nThe server encountered an unexpected condition which prevented it from fulfilling the request.\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/usr/local/uber/env/lib/python3.4/site-packages/cherrypy/_cprequest.py\", line 670, in respond\r\n    response.body = self.handler()\r\n  File \"/usr/local/uber/env/lib/python3.4/site-packages/cherrypy/lib/encoding.py\", line 217, in __call__\r\n    self.body = self.oldhandler(*args, **kwargs)\r\n  File \"/usr/local/uber/env/lib/python3.4/site-packages/cherrypy/_cpdispatch.py\", line 61, in __call__\r\n    return self.callable(*self.args, **self.kwargs)\r\n  File \"/usr/local/uber/plugins/uber/uber/decorators.py\", line 179, in with_timing\r\n    return func(*args, **kwargs)\r\n  File \"/usr/local/uber/plugins/uber/uber/decorators.py\", line 170, in with_caching\r\n    return func(*args, **kwargs)\r\n  File \"/usr/local/uber/plugins/uber/uber/decorators.py\", line 194, in with_session\r\n    retval = func(*args, session=session, **kwargs)\r\n  File \"/usr/local/uber/plugins/uber/uber/decorators.py\", line 278, in with_restrictions\r\n    return func(*args, **kwargs)\r\n  File \"/usr/local/uber/plugins/uber/uber/decorators.py\", line 240, in with_rendering\r\n    result = func(*args, **kwargs)\r\n  File \"/usr/local/uber/plugins/uber/uber/decorators.py\", line 13, in with_check\r\n    sa.Tracking.track_pageview(cherrypy.request.path_info, cherrypy.request.query_string)\r\n  File \"/usr/local/uber/plugins/uber/uber/models.py\", line 1730, in track_pageview\r\n    Tracking.track(c.PAGE_VIEWED, attendee)\r\n  File \"/usr/local/uber/plugins/uber/uber/models.py\", line 1691, in track\r\n    data = 'id={}'.format(instance.id)\r\nAttributeError: 'NoneType' object has no attribute 'id'\r\n```"}}