{"action":"opened","issue":{"url":"https://api.github.com/repos/coleifer/peewee/issues/808","labels_url":"https://api.github.com/repos/coleifer/peewee/issues/808/labels{/name}","comments_url":"https://api.github.com/repos/coleifer/peewee/issues/808/comments","events_url":"https://api.github.com/repos/coleifer/peewee/issues/808/events","html_url":"https://github.com/coleifer/peewee/issues/808","id":125149936,"number":808,"title":"IndexError: list index out of range","user":{"login":"gjedeer","id":315648,"avatar_url":"https://avatars.githubusercontent.com/u/315648?v=3","gravatar_id":"","url":"https://api.github.com/users/gjedeer","html_url":"https://github.com/gjedeer","followers_url":"https://api.github.com/users/gjedeer/followers","following_url":"https://api.github.com/users/gjedeer/following{/other_user}","gists_url":"https://api.github.com/users/gjedeer/gists{/gist_id}","starred_url":"https://api.github.com/users/gjedeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjedeer/subscriptions","organizations_url":"https://api.github.com/users/gjedeer/orgs","repos_url":"https://api.github.com/users/gjedeer/repos","events_url":"https://api.github.com/users/gjedeer/events{/privacy}","received_events_url":"https://api.github.com/users/gjedeer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-06T10:28:07Z","updated_at":"2016-01-06T10:28:07Z","closed_at":null,"body":"I have a problem that I can't figure out. Npm is a peewee model which I'm using like this:\r\n\r\n    package = Npm.select().where(Npm.id==package_name)[0]\r\n\r\nHowever peewee throws an exception which is not very meaningful:\r\n\r\n![peewee](https://cloud.githubusercontent.com/assets/315648/12140463/7b0206a0-b468-11e5-986c-2c821ab43b59.png)\r\n\r\nAny idea what I'm doing wrong or how this can be fixed in peewee code ?\r\n"}}