Skip to content

Archived channel standup exception #2

@com4

Description

@com4
2017-07-12 10:00:00,001 [INFO] StandUpPlugin: Executing standup for channel #data_arch      
2017-07-12 10:00:00,001 [INFO] StandUpPlugin: Executing standup for channel #warmachine-dev                                                                                                                                                                                                                                                                                                                                                                                                                               
2017-07-12 10:00:00,002 [DEBUG] SlackWS: Gathering list of users for channel G3NCGRNLV from: https://slack.com/api/groups.info?channel=G3NCGRNLV&token=xoxb-#######################                                                                                                              
2017-07-12 10:00:00,119 [ERROR] asyncio: Task exception was never retrieved
future: <Task finished coro=<StandUpPlugin.start_standup() done, defined at /home/com4/warmachine-ng/warmachine/addons/standup.py:307> exception=KeyError('group',)>                                                                                                                                          
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/home/com4/warmachine-ng/warmachine/addons/standup.py", line 312, in start_standup                                                                                                                                                                                                                    
    users = connection.get_users_by_channel(channel)
  File "/home/com4/warmachine-ng/warmachine/connections/slack.py", line 340, in get_users_by_channel
    for u_id in r[key]['members']:
KeyError: 'group'

Exception occurs when a standup is scheduled for an archived channel?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions