{"action":"created","issue":{"url":"https://api.github.com/repos/mtorromeo/slacksend/issues/1","repository_url":"https://api.github.com/repos/mtorromeo/slacksend","labels_url":"https://api.github.com/repos/mtorromeo/slacksend/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mtorromeo/slacksend/issues/1/comments","events_url":"https://api.github.com/repos/mtorromeo/slacksend/issues/1/events","html_url":"https://github.com/mtorromeo/slacksend/issues/1","id":161981802,"number":1,"title":"UnboundLocalError: local variable 'attachment' referenced before assignment","user":{"login":"port22","id":8873017,"avatar_url":"https://avatars.githubusercontent.com/u/8873017?v=3","gravatar_id":"","url":"https://api.github.com/users/port22","html_url":"https://github.com/port22","followers_url":"https://api.github.com/users/port22/followers","following_url":"https://api.github.com/users/port22/following{/other_user}","gists_url":"https://api.github.com/users/port22/gists{/gist_id}","starred_url":"https://api.github.com/users/port22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/port22/subscriptions","organizations_url":"https://api.github.com/users/port22/orgs","repos_url":"https://api.github.com/users/port22/repos","events_url":"https://api.github.com/users/port22/events{/privacy}","received_events_url":"https://api.github.com/users/port22/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-23T17:45:27Z","updated_at":"2016-06-24T10:11:56Z","closed_at":"2016-06-24T09:37:30Z","body":"Hi,\r\nI can't get it working :-(\r\n\r\nFirst, I had to install some python extensions: setproctitle, configparser, pathlib\r\nThen, I ran: \r\n\r\n`./slacksend.py -U https://hooks.slack.com/services/T0NKTg74E/B1KN30Cx2/5a2kZ6LtJJwEixd \"bla\"`\r\n\r\n(token anonymized) and it gives back:\r\n```\r\nTraceback (most recent call last):\r\n  File \"./slacksend.py\", line 122, in <module>\r\n    main()\r\n  File \"./slacksend.py\", line 115, in main\r\n    payload = build(options, args, message)\r\n  File \"./slacksend.py\", line 21, in build\r\n    if attachment:\r\nUnboundLocalError: local variable 'attachment' referenced before assignment\r\n```\r\nI tested that on different machines, all the same .. "},"comment":{"url":"https://api.github.com/repos/mtorromeo/slacksend/issues/comments/228308876","html_url":"https://github.com/mtorromeo/slacksend/issues/1#issuecomment-228308876","issue_url":"https://api.github.com/repos/mtorromeo/slacksend/issues/1","id":228308876,"user":{"login":"port22","id":8873017,"avatar_url":"https://avatars.githubusercontent.com/u/8873017?v=3","gravatar_id":"","url":"https://api.github.com/users/port22","html_url":"https://github.com/port22","followers_url":"https://api.github.com/users/port22/followers","following_url":"https://api.github.com/users/port22/following{/other_user}","gists_url":"https://api.github.com/users/port22/gists{/gist_id}","starred_url":"https://api.github.com/users/port22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/port22/subscriptions","organizations_url":"https://api.github.com/users/port22/orgs","repos_url":"https://api.github.com/users/port22/repos","events_url":"https://api.github.com/users/port22/events{/privacy}","received_events_url":"https://api.github.com/users/port22/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T10:11:56Z","updated_at":"2016-06-24T10:11:56Z","body":"ooh alright, I din't know I could use mattersend for slack too - i'll test that. thanks!"}}
{"actor":{"display_login":"port22"}}