More debug. Now spams botzone.

This commit is contained in:
Jacob Henry 2019-04-04 23:03:54 -04:00
parent 8d5554855f
commit 8223192048
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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]: