{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/8aa71bbce44d1fe9a26bacc7721f142d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8aa71bbce44d1fe9a26bacc7721f142d","url":"https://api.github.com/users/svenstaro","login":"svenstaro","id":1664},"milestone":{"state":"open","open_issues":8,"url":"https://api.github.com/repos/svenstaro/flamejam/milestones/1","due_on":null,"creator":{"avatar_url":"https://secure.gravatar.com/avatar/8aa71bbce44d1fe9a26bacc7721f142d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8aa71bbce44d1fe9a26bacc7721f142d","url":"https://api.github.com/users/svenstaro","login":"svenstaro","id":1664},"number":1,"title":"0.1","description":"","closed_issues":16,"created_at":"2011-07-12T12:56:48Z"},"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/5365a5d8c7b7389ef6c20a50189c8572?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5365a5d8c7b7389ef6c20a50189c8572","url":"https://api.github.com/users/opatut","login":"opatut","id":235784},"updated_at":"2011-11-08T22:11:34Z","labels":[{"name":"bug","color":"d7e102","url":"https://api.github.com/repos/svenstaro/flamejam/labels/bug"}],"comments":0,"closed_at":null,"url":"https://api.github.com/repos/svenstaro/flamejam/issues/39","body":"I get this for basically every other request:\r\n\r\n[Tue Nov 08 23:04:32 2011] [error] [client 31.18.56.157] mod_wsgi (pid=12773): Exception occurred processing WSGI script '/var/flask-sites/flamejam/flamejam.wsgi'.\r\n[Tue Nov 08 23:04:32 2011] [error] [client 31.18.56.157] Traceback (most recent call last):\r\n[Tue Nov 08 23:04:32 2011] [error] [client 31.18.56.157]   File \"/var/flask-sites/flamejam/env/lib/python2.7/site-packages/flask/app.py\", line 1518, in __call__\r\n[Tue Nov 08 23:04:32 2011] [error] [client 31.18.56.157]     return self.wsgi_app(environ, start_response)\r\n[Tue Nov 08 23:04:32 2011] [error] [client 31.18.56.157]   File \"/var/flask-sites/flamejam/env/lib/python2.7/site-packages/flask/app.py\", line 1506, in wsgi_app\r\n[Tue Nov 08 23:04:32 2011] [error] [client 31.18.56.157]     response = self.make_response(self.handle_exception(e))\r\n[Tue Nov 08 23:04:32 2011] [error] [client 31.18.56.157]   File \"/var/flask-sites/flamejam/env/lib/python2.7/site-packages/flask/app.py\", line 1197, in handle_exception\r\n[Tue Nov 08 23:04:32 2011] [error] [client 31.18.56.157]     return handler(e)\r\n[Tue Nov 08 23:04:32 2011] [error] [client 31.18.56.157]   File \"/var/flask-sites/flamejam/flamejam/views.py\", line 712, in error\r\n[Tue Nov 08 23:04:32 2011] [error] [client 31.18.56.157]     return render_template(\"error.html\", error = error), error.code\r\n[Tue Nov 08 23:04:32 2011] [error] [client 31.18.56.157] AttributeError: 'exceptions.TypeError' object has no attribute 'code'\r\n\r\nSucks. We should handle this way more properly. See http://flask.pocoo.org/docs/errorhandling/#application-errors and http://flask.pocoo.org/docs/patterns/errorpages/","html_url":"https://github.com/svenstaro/flamejam/issues/39","number":39,"title":"Error handling is busted","id":2180113,"created_at":"2011-11-08T22:11:34Z"},"action":"opened"}