INNER CODE UNIT · Python

result_error

autokitteh/autokitteh · runtimes/pythonrt/runner/main.py:316

    def result_error(self, err):
        io = StringIO()

        if "No module named" in str(err):
            self._orig_print(suggest_add_package, file=io)

        if "pickle" in str(err):
            self._orig_print(pickle_help, file=io)

        exc = "".join(format_exception(err))
        self._orig_print(f"error: {err!r}\n\n{exc}", file=io)

        return io.getvalue()

    def submit_to_threadpool(self, fn, *args, **kw):
        log.info("submitting to threadpool: %s", full_func_name(fn))

        def cb(fut):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…