{"action":"created","issue":{"url":"https://api.github.com/repos/madcore-ai/cli/issues/38","repository_url":"https://api.github.com/repos/madcore-ai/cli","labels_url":"https://api.github.com/repos/madcore-ai/cli/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/madcore-ai/cli/issues/38/comments","events_url":"https://api.github.com/repos/madcore-ai/cli/issues/38/events","html_url":"https://github.com/madcore-ai/cli/issues/38","id":201630730,"number":38,"title":"`madcore configure` fails if bitbucket user has no teams","user":{"login":"gorilych","id":7404372,"avatar_url":"https://avatars.githubusercontent.com/u/7404372?v=3","gravatar_id":"","url":"https://api.github.com/users/gorilych","html_url":"https://github.com/gorilych","followers_url":"https://api.github.com/users/gorilych/followers","following_url":"https://api.github.com/users/gorilych/following{/other_user}","gists_url":"https://api.github.com/users/gorilych/gists{/gist_id}","starred_url":"https://api.github.com/users/gorilych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gorilych/subscriptions","organizations_url":"https://api.github.com/users/gorilych/orgs","repos_url":"https://api.github.com/users/gorilych/repos","events_url":"https://api.github.com/users/gorilych/events{/privacy}","received_events_url":"https://api.github.com/users/gorilych/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-18T16:54:27Z","updated_at":"2017-01-20T14:43:02Z","closed_at":null,"body":"```\r\n2017-01-18 23:19:54,199 [INFO] madcore.configure: Check if user already exists.\r\nInput madcore password:\r\n2017-01-18 23:20:05,151 [INFO] madcore.configure: Login user(automatically)\r\n2017-01-18 23:20:06,259 [ERROR] madcore.configure: User not found: gorilych@gmail.com\r\n2017-01-18 23:20:06,259 [INFO] madcore.configure: User does not exists, create: 'gorilych@gmail.com'\r\n2017-01-18 23:20:07,215 [ERROR] madcore: options should not be an empty list\r\nTraceback (most recent call last):\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/cliff/app.py\", line 400, in run_subcommand\r\n    result = cmd.run(parsed_args)\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/cliff/display.py\", line 112, in run\r\n    column_names, data = self.take_action(parsed_args)\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/madcore/cmds/configure.py\", line 71, in take_action\r\n    config_results = configure.take_action(parsed_args)\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/madcore/configure.py\", line 409, in take_action\r\n    self.configure_user_registration()\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/madcore/configure.py\", line 348, in configure_user_registration\r\n    selected_team = self.single_prompt('team', options=teams, prompt='Select bitbucket team')\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/madcore/configure.py\", line 34, in single_prompt\r\n    return questionnaire.run()\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/questionnaire/__init__.py\", line 124, in run\r\n    if not self.ask_questions():\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/questionnaire/__init__.py\", line 135, in ask_questions\r\n    if not self.ask_question(question):\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/questionnaire/__init__.py\", line 146, in ask_question\r\n    self.answers[q.key], back = q.prompter(prompt, **q.prompter_args)\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/questionnaire/prompters.py\", line 35, in single\r\n    picker = Picker(options, title=prompt, indicator='=>')\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/pick/__init__.py\", line 26, in __init__\r\n    raise ValueError('options should not be an empty list')\r\nValueError: options should not be an empty list\r\n2017-01-18 23:20:07,217 [DEBUG] madcore: Got an error: options should not be an empty list\r\n2017-01-18 23:20:07,218 [DEBUG] madcore: Traceback (most recent call last):\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/cliff/app.py\", line 400, in run_subcommand\r\n    result = cmd.run(parsed_args)\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/cliff/display.py\", line 112, in run\r\n    column_names, data = self.take_action(parsed_args)\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/madcore/cmds/configure.py\", line 71, in take_action\r\n    config_results = configure.take_action(parsed_args)\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/madcore/configure.py\", line 409, in take_action\r\n    self.configure_user_registration()\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/madcore/configure.py\", line 348, in configure_user_registration\r\n    selected_team = self.single_prompt('team', options=teams, prompt='Select bitbucket team')\r\n  File \"/home/me/tmp/madcore/env/local/lib/python2.7/site-packages/madcore/configure.py\", line 34, in single_prompt\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/madcore-ai/cli/issues/comments/274088242","html_url":"https://github.com/madcore-ai/cli/issues/38#issuecomment-274088242","issue_url":"https://api.github.com/repos/madcore-ai/cli/issues/38","id":274088242,"user":{"login":"styk-tv","id":838921,"avatar_url":"https://avatars.githubusercontent.com/u/838921?v=3","gravatar_id":"","url":"https://api.github.com/users/styk-tv","html_url":"https://github.com/styk-tv","followers_url":"https://api.github.com/users/styk-tv/followers","following_url":"https://api.github.com/users/styk-tv/following{/other_user}","gists_url":"https://api.github.com/users/styk-tv/gists{/gist_id}","starred_url":"https://api.github.com/users/styk-tv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styk-tv/subscriptions","organizations_url":"https://api.github.com/users/styk-tv/orgs","repos_url":"https://api.github.com/users/styk-tv/repos","events_url":"https://api.github.com/users/styk-tv/events{/privacy}","received_events_url":"https://api.github.com/users/styk-tv/received_events","type":"User","site_admin":false},"created_at":"2017-01-20T14:43:02Z","updated_at":"2017-01-20T14:43:02Z","body":"This is showing up back on 0.3.7\r\n\r\n```\r\n2017-01-20 17:34:21,788 [DEBUG] madcore.configure: Connect to bitbucket and get information...\r\n2017-01-20 17:34:23,425 [INFO] madcore.configure: Check if user already exists.\r\nInput madcore password: \r\n2017-01-20 17:36:10,321 [INFO] madcore.configure: Login user(automatically)\r\n2017-01-20 17:36:11,204 [ERROR] madcore.configure: User not found: user@email\r\n2017-01-20 17:36:11,205 [INFO] madcore.configure: User does not exists, create: 'user@email'\r\n2017-01-20 17:36:12,202 [ERROR] madcore: options should not be an empty list\r\n2017-01-20 17:36:12,203 [DEBUG] madcore: Got an error: options should not be an empty list\r\n```"}}
{"actor":{"display_login":"styk-tv"}}