def write_error(self, status_code, **kwargs):
        if "exc_info" in kwargs:
            typ, value, _ = kwargs["exc_info"]
            self.error([(status_code, traceback.format_exception_only(typ, value))])
        else:
            self.error([(status_code, None)])
Overrides tornado's uncaught exception handler to return JSON results.
dataset/ETHPy150Open dropbox/grouper/grouper/api/handlers.py/GraphHandler.write_error