{"action":"created","issue":{"url":"https://api.github.com/repos/SickRage/SickRage/issues/2829","repository_url":"https://api.github.com/repos/SickRage/SickRage","labels_url":"https://api.github.com/repos/SickRage/SickRage/issues/2829/labels{/name}","comments_url":"https://api.github.com/repos/SickRage/SickRage/issues/2829/comments","events_url":"https://api.github.com/repos/SickRage/SickRage/issues/2829/events","html_url":"https://github.com/SickRage/SickRage/issues/2829","id":198399728,"number":2829,"title":"Error while sending torrent: local variable 'torrent' referenced before assignment","user":{"login":"jackkiej","id":1876996,"avatar_url":"https://avatars.githubusercontent.com/u/1876996?v=3","gravatar_id":"","url":"https://api.github.com/users/jackkiej","html_url":"https://github.com/jackkiej","followers_url":"https://api.github.com/users/jackkiej/followers","following_url":"https://api.github.com/users/jackkiej/following{/other_user}","gists_url":"https://api.github.com/users/jackkiej/gists{/gist_id}","starred_url":"https://api.github.com/users/jackkiej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackkiej/subscriptions","organizations_url":"https://api.github.com/users/jackkiej/orgs","repos_url":"https://api.github.com/users/jackkiej/repos","events_url":"https://api.github.com/users/jackkiej/events{/privacy}","received_events_url":"https://api.github.com/users/jackkiej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-01-03T02:00:15Z","updated_at":"2017-01-05T13:15:21Z","closed_at":null,"body":"Using the latest kernel (4.9) on CentOS 7 with the latest SickRage (master branch),\r\n\r\nI will get this error in SickRage with rTorrent configured:\r\n\r\nError while sending torrent: local variable 'torrent' referenced before assignment\r\n\r\nSomething wrong with:\r\n\r\nhttps://github.com/SickRage/SickRage/blob/master/sickbeard/clients/rtorrent_client.py#L72\r\n&\r\nhttps://github.com/SickRage/SickRage/blob/master/sickbeard/clients/rtorrent_client.py#L113\r\n\r\n??\r\n\r\nUsing Python 2.7.5\r\n\r\nEDIT: Update to Python 2.7.10 did not help\r\n\r\nDebug log shows:\r\n\r\n```\r\n2017-01-04 15:43:33 WARNING  SEARCHQUEUE-MANUAL-161511 :: rTorrent: Unable to send Torrent\r\n2017-01-04 15:43:33 WARNING  SEARCHQUEUE-MANUAL-161511 :: Error while sending torrent: local variable 'torrent' referenced before assignment\r\n2017-01-04 15:43:33 DEBUG    SEARCHQUEUE-MANUAL-161511 :: Calling rTorrent Client\r\n2017-01-04 15:43:33 INFO     SEARCHQUEUE-MANUAL-161511 :: Downloading Shameless.US.S07E12.1080p.HDTV.X264-DIMENSION[rartv] from Rarbg\r\n```\r\n\r\nCommand uname -r : \r\n`4.9.0-1.el7.elrepo.x86_64`\r\n\r\nCommand cat /etc/redhat-release : \r\n`CentOS Linux release 7.3.1611 (Core)`\r\n"},"comment":{"url":"https://api.github.com/repos/SickRage/SickRage/issues/comments/270641384","html_url":"https://github.com/SickRage/SickRage/issues/2829#issuecomment-270641384","issue_url":"https://api.github.com/repos/SickRage/SickRage/issues/2829","id":270641384,"user":{"login":"miigotu","id":390379,"avatar_url":"https://avatars.githubusercontent.com/u/390379?v=3","gravatar_id":"","url":"https://api.github.com/users/miigotu","html_url":"https://github.com/miigotu","followers_url":"https://api.github.com/users/miigotu/followers","following_url":"https://api.github.com/users/miigotu/following{/other_user}","gists_url":"https://api.github.com/users/miigotu/gists{/gist_id}","starred_url":"https://api.github.com/users/miigotu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miigotu/subscriptions","organizations_url":"https://api.github.com/users/miigotu/orgs","repos_url":"https://api.github.com/users/miigotu/repos","events_url":"https://api.github.com/users/miigotu/events{/privacy}","received_events_url":"https://api.github.com/users/miigotu/received_events","type":"User","site_admin":false},"created_at":"2017-01-05T13:15:21Z","updated_at":"2017-01-05T13:15:21Z","body":"Yeah I didnt change any code that would warn that rTorrent is not started, so that error is normal. Glad its fixed"}}
{"actor":{"display_login":"miigotu"}}