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

Add error message for when service isn't authorized by cftools app #70

Open
schana opened this issue Oct 14, 2020 · 0 comments
Open

Add error message for when service isn't authorized by cftools app #70

schana opened this issue Oct 14, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@schana
Copy link
Collaborator

schana commented Oct 14, 2020

Currently the bot fails silently

2020-10-14 10:22:54,224 ERROR carim_discord_bot.managed_service - something crashed OmegaService
Traceback (most recent call last):
  File "C:\Users\Nathaniel\Documents\carim-discord-bot\src\carim_discord_bot\managed_service.py", line 68, in _message_processor
    await self._handle_message(message)
  File "C:\Users\Nathaniel\Documents\carim-discord-bot\src\carim_discord_bot\managed_service.py", line 77, in _handle_message
    await self.handle_message(message)
  File "C:\Users\Nathaniel\Documents\carim-discord-bot\src\carim_discord_bot\cftools\omega_service.py", line 94, in handle_message
    result = await self.query_leaderboard(message.server_name, message.stat)
  File "C:\Users\Nathaniel\Documents\carim-discord-bot\src\carim_discord_bot\cftools\omega_service.py", line 177, in query_leaderboard
    service_token = self.get_service_token(server_name)
  File "C:\Users\Nathaniel\Documents\carim-discord-bot\src\carim_discord_bot\cftools\omega_service.py", line 152, in get_service_token
    return self.service_tokens[config.get_server(server_name).cftools_service_id]
KeyError: None
@schana schana added the enhancement New feature or request label Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant