More debug. Now spams botzone.
This commit is contained in:
parent
8d5554855f
commit
8223192048
|
|
@ -417,5 +417,7 @@ async def _exception_printing_task(c: Coroutine[A, B, C]) -> Coroutine[A, B, C]:
|
||||||
try:
|
try:
|
||||||
return await c
|
return await c
|
||||||
except Exception:
|
except Exception:
|
||||||
traceback.print_exc()
|
output = traceback.format_exc()
|
||||||
|
print(output)
|
||||||
|
get_slack().send_message(output, "#botzone")
|
||||||
raise
|
raise
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@ async def lookup_slackid_brother(slack_id: str) -> scroll_util.Brother:
|
||||||
return scroll_util.find_by_scroll(scroll)
|
return scroll_util.find_by_scroll(scroll)
|
||||||
except (KeyError, ValueError):
|
except (KeyError, ValueError):
|
||||||
raise scroll_util.BrotherNotFound("Slack id {} not tied to brother".format(slack_id))
|
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]:
|
async def lookup_brother_userids(brother: scroll_util.Brother) -> List[str]:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue