devtools
print_stacktrace
def print_stacktrace()
Prints out the current stack trace. Will also extract any exceptions and print them at the end.
handle_system_exit
@contextmanager
def handle_system_exit(error_msg: str)
Simple wrapper which makes sure crashes causing a SystemExit (i.e. through exit(1)
) are properly propagated as errors
get_error_for_channel
def get_error_for_channel() -> dict
Get error from current stacktrace to send to the client
send_error_for_session
async def send_error_for_session(ws_mgr: WebsocketManager, session_id: str)
Broadcast error from current stacktrace to the correct client