diff --git a/client.py b/client.py index 96b516f..14437ca 100644 --- a/client.py +++ b/client.py @@ -417,5 +417,7 @@ async def _exception_printing_task(c: Coroutine[A, B, C]) -> Coroutine[A, B, C]: try: return await c except Exception: - traceback.print_exc() + output = traceback.format_exc() + print(output) + get_slack().send_message(output, "#botzone") raise diff --git a/plugins/identifier.py b/plugins/identifier.py index 11d276f..1ed4f23 100644 --- a/plugins/identifier.py +++ b/plugins/identifier.py @@ -115,6 +115,7 @@ async def lookup_slackid_brother(slack_id: str) -> scroll_util.Brother: return scroll_util.find_by_scroll(scroll) except (KeyError, ValueError): raise scroll_util.BrotherNotFound("Slack id {} not tied to brother".format(slack_id)) + raise scroll_util.BrotherNotFound("Couldn't find an appropriate brother for slackid {}.".format(slack_id)) async def lookup_brother_userids(brother: scroll_util.Brother) -> List[str]: