{"action":"created","issue":{"url":"https://api.github.com/repos/alilja/ratebeer/issues/23","repository_url":"https://api.github.com/repos/alilja/ratebeer","labels_url":"https://api.github.com/repos/alilja/ratebeer/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/alilja/ratebeer/issues/23/comments","events_url":"https://api.github.com/repos/alilja/ratebeer/issues/23/events","html_url":"https://github.com/alilja/ratebeer/issues/23","id":142658745,"number":23,"title":"Failure to fetch beer object","user":{"login":"jtexnl","id":6758591,"avatar_url":"https://avatars.githubusercontent.com/u/6758591?v=3","gravatar_id":"","url":"https://api.github.com/users/jtexnl","html_url":"https://github.com/jtexnl","followers_url":"https://api.github.com/users/jtexnl/followers","following_url":"https://api.github.com/users/jtexnl/following{/other_user}","gists_url":"https://api.github.com/users/jtexnl/gists{/gist_id}","starred_url":"https://api.github.com/users/jtexnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtexnl/subscriptions","organizations_url":"https://api.github.com/users/jtexnl/orgs","repos_url":"https://api.github.com/users/jtexnl/repos","events_url":"https://api.github.com/users/jtexnl/events{/privacy}","received_events_url":"https://api.github.com/users/jtexnl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-22T13:58:48Z","updated_at":"2016-04-19T16:38:15Z","closed_at":"2016-04-19T16:38:15Z","body":"I downloaded the package a week or so ago, and it originally was working beautifully. When I tried it a couple of days ago, it started throwing this error:\r\n\r\n```\r\n>>> rb.beer('/beer/new-belgium-tour-de-fall/279122/')\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python3.4/site-packages/ratebeer/ratebeer.py\", line 143, in beer\r\n    return self.get_beer(url, True).__dict__\r\n  File \"/usr/local/lib/python3.4/site-packages/ratebeer/ratebeer.py\", line 139, in get_beer\r\n    return models.Beer(url, fetch)\r\n  File \"/usr/local/lib/python3.4/site-packages/ratebeer/models.py\", line 72, in __init__\r\n    self._populate()\r\n  File \"/usr/local/lib/python3.4/site-packages/ratebeer/models.py\", line 134, in _populate\r\n    self.overall_rating = int(soup.find('span', text='overall').next_sibling.next_sibling)\r\nTypeError: int() argument must be a string, a bytes-like object or a number, not 'Tag'\r\n```\r\n\r\nI've looked into the code on the lines it's referencing, and can't find anything that should be throwing this error. Any ideas? Other functions (rb.search) seem to be working fine. I tried updating the package, but to no avail."},"comment":{"url":"https://api.github.com/repos/alilja/ratebeer/issues/comments/212009250","html_url":"https://github.com/alilja/ratebeer/issues/23#issuecomment-212009250","issue_url":"https://api.github.com/repos/alilja/ratebeer/issues/23","id":212009250,"user":{"login":"jtexnl","id":6758591,"avatar_url":"https://avatars.githubusercontent.com/u/6758591?v=3","gravatar_id":"","url":"https://api.github.com/users/jtexnl","html_url":"https://github.com/jtexnl","followers_url":"https://api.github.com/users/jtexnl/followers","following_url":"https://api.github.com/users/jtexnl/following{/other_user}","gists_url":"https://api.github.com/users/jtexnl/gists{/gist_id}","starred_url":"https://api.github.com/users/jtexnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtexnl/subscriptions","organizations_url":"https://api.github.com/users/jtexnl/orgs","repos_url":"https://api.github.com/users/jtexnl/repos","events_url":"https://api.github.com/users/jtexnl/events{/privacy}","received_events_url":"https://api.github.com/users/jtexnl/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T16:38:15Z","updated_at":"2016-04-19T16:38:15Z","body":"Works now, thanks for the fix!\r\n`>>> rb.beer(\"/beer/new-belgium-tour-de-fall/279122/\")\r\n{'abv': 6.0, 'num_ratings': 260, 'url': '/beer/new-belgium-tour-de-fall/279122/', 'ibu': 38, 'tags': ['cascade', 'amarillo'], 'style_url': '/beerstyles/american-pale-ale/18/', 'name': 'New Belgium Tour de Fall', 'calories': 180, 'seasonal': 'Autumn', 'img_url': 'http://res.cloudinary.com/ratebeer/image/upload/w_120,c_limit/beer_279122.jpg', 'style': 'American Pale Ale', 'brewery': <Brewery('/brewers/new-belgium-brewing-company/77/')>, 'brewed_at': None, 'weighted_avg': 3.34, 'overall_rating': 74, 'style_rating': 71, '_has_fetched': True, 'description': 'New Belgium\\x92s love for beer, bikes and benefits is best described by being at Tour de Fat. Our love for Cascade and Amarillo hops is best tasted in our Tour de Fall Pale Ale. We\\x92re cruising both across the country during our favorite time of year. Hop on and find Tour de Fall Pale Ale in fall 2014.', 'mean_rating': None}`"}}