Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when channel is archived and standup has been scheduled to run in it #1

Open
com4 opened this issue Jul 12, 2017 · 0 comments

Comments

@com4
Copy link
Owner

com4 commented Jul 12, 2017

2017-07-11 12:03:42,573 [DEBUG] SlackWS: on_channel_archive does not exist for message: {'type': 'channel_archive', 'channel': 'C583J7PNU', 'is_moved': 0, 'user': 'U0286NL58', 'event_ts': '1499796222.215433'}                                                                                              
2017-07-11 13:06:32,283 [DEBUG] SlackWS: on_channel_created does not exist for message: {'type': 'channel_created', 'channel': {'name': 'subs_and_licenses', 'name_normalized': 'subs_and_licenses', 'is_channel': True, 'created': 1499799992, 'creator': 'U0GJWKPDF', 'is_org_shared': False, 'id': 'C66LVD2V7', 'is_shared': False}, 'event_ts': '1499799992.356751'}
2017-07-11 13:47:47,538 [DEBUG] SlackWS: on_member_joined_channel does not exist for message: {'type': 'member_joined_channel', 'event_ts': '1499802467.131766', 'user': 'U1W92ACMP', 'channel': 'C64PPBZJ6', 'ts': '1499802467.131766', 'channel_type': 'C', 'inviter': 'U06LRM6AZ'}
2017-07-11 13:48:10,008 [ERROR] asyncio: Task exception was never retrieved
future: <Task finished coro=<Bot.process_message() done, defined at ./bin/dbolla:81> exception=KeyError('C64PPBZJ6',)>
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "./bin/dbolla", line 86, in process_message
    message = await connection.read()
  File "/home/com4/warmachine-ng/warmachine/connections/slack.py", line 100, in read                                                                                                                                                                                                                          
    return await self.process_message(message)
  File "/home/com4/warmachine-ng/warmachine/connections/slack.py", line 228, in process_message
    channel = '#{}'.format(self.channel_map[msg['channel']]['name'])
KeyError: 'C64PPBZJ6'

I think this was caused when someone created a channel that had a scheduled standup pending

@com4 com4 changed the title exception in processing message Exception when channel is archived and standup has been scheduled to run in it Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant