{"action":"opened","issue":{"url":"https://api.github.com/repos/gnumdk/lollypop/issues/326","labels_url":"https://api.github.com/repos/gnumdk/lollypop/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/gnumdk/lollypop/issues/326/comments","events_url":"https://api.github.com/repos/gnumdk/lollypop/issues/326/events","html_url":"https://github.com/gnumdk/lollypop/issues/326","id":112029015,"number":326,"title":"Crash trying to add a radio wtih the \"new radio\" button","user":{"login":"BPaden","id":1188012,"avatar_url":"https://avatars.githubusercontent.com/u/1188012?v=3","gravatar_id":"","url":"https://api.github.com/users/BPaden","html_url":"https://github.com/BPaden","followers_url":"https://api.github.com/users/BPaden/followers","following_url":"https://api.github.com/users/BPaden/following{/other_user}","gists_url":"https://api.github.com/users/BPaden/gists{/gist_id}","starred_url":"https://api.github.com/users/BPaden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BPaden/subscriptions","organizations_url":"https://api.github.com/users/BPaden/orgs","repos_url":"https://api.github.com/users/BPaden/repos","events_url":"https://api.github.com/users/BPaden/events{/privacy}","received_events_url":"https://api.github.com/users/BPaden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-18T16:49:00Z","updated_at":"2015-10-18T16:49:00Z","closed_at":null,"body":"It immediately crashes when clicking the button, giving the following traceback:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/site-packages/lollypop/view_radios.py\", line 124, in _on_new_clicked\r\n    popover = RadioPopover('', self._radios_manager)\r\n  File \"/usr/lib/python3.5/site-packages/lollypop/pop_radio.py\", line 77, in __init__\r\n    rating = RatingWidget(track)\r\n  File \"/usr/lib/python3.5/site-packages/lollypop/widgets_rating.py\", line 41, in __init__\r\n    self._on_leave_notify(None, None)\r\n  File \"/usr/lib/python3.5/site-packages/lollypop/widgets_rating.py\", line 70, in _on_leave_notify\r\n    stars = self._object.get_popularity()\r\n  File \"/usr/lib/python3.5/site-packages/lollypop/objects.py\", line 67, in get_popularity\r\n    avg_popularity = radios.get_avg_popularity()\r\n  File \"/usr/lib/python3.5/site-packages/lollypop/radios.py\", line 185, in get_avg_popularity\r\n    if v and v[0] > 5:\r\nTypeError: unorderable types: NoneType() > int()\r\n"}}