{"action":"created","issue":{"url":"https://api.github.com/repos/wee-slack/wee-slack/issues/624","repository_url":"https://api.github.com/repos/wee-slack/wee-slack","labels_url":"https://api.github.com/repos/wee-slack/wee-slack/issues/624/labels{/name}","comments_url":"https://api.github.com/repos/wee-slack/wee-slack/issues/624/comments","events_url":"https://api.github.com/repos/wee-slack/wee-slack/issues/624/events","html_url":"https://github.com/wee-slack/wee-slack/issues/624","id":355560751,"node_id":"MDU6SXNzdWUzNTU1NjA3NTE=","number":624,"title":"/whois fails if I have a status set through the webapp","user":{"login":"apetresc","id":14872,"node_id":"MDQ6VXNlcjE0ODcy","avatar_url":"https://avatars0.githubusercontent.com/u/14872?v=4","gravatar_id":"","url":"https://api.github.com/users/apetresc","html_url":"https://github.com/apetresc","followers_url":"https://api.github.com/users/apetresc/followers","following_url":"https://api.github.com/users/apetresc/following{/other_user}","gists_url":"https://api.github.com/users/apetresc/gists{/gist_id}","starred_url":"https://api.github.com/users/apetresc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apetresc/subscriptions","organizations_url":"https://api.github.com/users/apetresc/orgs","repos_url":"https://api.github.com/users/apetresc/repos","events_url":"https://api.github.com/users/apetresc/events{/privacy}","received_events_url":"https://api.github.com/users/apetresc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-30T12:22:38Z","updated_at":"2018-11-04T01:32:26Z","closed_at":"2018-11-04T01:32:26Z","author_association":"NONE","body":"Under normal circumstances, I can `/whois` myself just fine:\r\n\r\n```\r\n08:16:39 | [apetresc]: Adrian Petrescu\r\n08:16:39 | [apetresc]: Real name: *redacted*\r\n08:16:39 | [apetresc]: Title: *redacted*\r\n08:16:39 | [apetresc]: Email: *redacted*\r\n08:16:39 | [apetresc]: Phone: *redacted*\r\n08:16:58 | [apetresc]: *redacted*\r\n```\r\n\r\nBut if I use the Slack web app to set a status (like, say, \":house_with_garden: WFH\"), then a `/whois` on myself fails with:\r\n```\r\n08:13:28 =!= | irc: command \"whois\" must be executed on irc buffer (server or channel)\r\n08:16:58     | python: stdout/stderr (slack): Traceback (most recent call last):\r\n08:16:58     | python: stdout/stderr (slack):   File \"/home/apetresc/.weechat/python/autoload/wee_slack.py\", line 103, in wrapper\r\n08:16:58     | python: stdout/stderr (slack):     return f(data, current_buffer, *args, **kwargs)\r\n08:16:58     | python: stdout/stderr (slack):   File \"/home/apetresc/.weechat/python/autoload/wee_slack.py\", line 126, in wrapper\r\n08:16:58     | python: stdout/stderr (slack):     return f(*decode_from_utf8(args), **decode_from_utf8(kwargs))\r\n08:16:58     | python: stdout/stderr (slack):   File \"/home/apetresc/.weechat/python/autoload/wee_slack.py\", line 3201, in whois_command_cb\r\n08:16:58     | python: stdout/stderr (slack):     team.buffer_prnt(\"[{}]: {} {}\".format(user, u.profile.status_emoji, u.profile.status_text))\r\n08:16:58     | python: stdout/stderr (slack): AttributeError: 'dict' object has no attribute 'status_emoji'\r\n08:16:58 =!= | python: error in function \"whois_command_cb\"\r\n```\r\n\r\nIf I then clear my status and `/whois` myself again, it goes back to working.\r\n\r\nStrangely, if I `/whois` _other_ people who also happen to have an emoji status set, it works fine for them. (It doesn't show me their status or anything, but it does at least not error out).\r\n\r\nLet me know if there's any other details I can provide! :)"},"comment":{"url":"https://api.github.com/repos/wee-slack/wee-slack/issues/comments/435634410","html_url":"https://github.com/wee-slack/wee-slack/issues/624#issuecomment-435634410","issue_url":"https://api.github.com/repos/wee-slack/wee-slack/issues/624","id":435634410,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTYzNDQxMA==","user":{"login":"trygveaa","id":601966,"node_id":"MDQ6VXNlcjYwMTk2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/601966?v=4","gravatar_id":"","url":"https://api.github.com/users/trygveaa","html_url":"https://github.com/trygveaa","followers_url":"https://api.github.com/users/trygveaa/followers","following_url":"https://api.github.com/users/trygveaa/following{/other_user}","gists_url":"https://api.github.com/users/trygveaa/gists{/gist_id}","starred_url":"https://api.github.com/users/trygveaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trygveaa/subscriptions","organizations_url":"https://api.github.com/users/trygveaa/orgs","repos_url":"https://api.github.com/users/trygveaa/repos","events_url":"https://api.github.com/users/trygveaa/events{/privacy}","received_events_url":"https://api.github.com/users/trygveaa/received_events","type":"User","site_admin":false},"created_at":"2018-11-04T01:32:26Z","updated_at":"2018-11-04T01:32:26Z","author_association":"COLLABORATOR","body":"Fixed with #651."}}
{"actor":{"display_login":"trygveaa"}}