MCPcopy Index your code
hub / github.com/scrapinghub/splash / on_lua_error

Method on_lua_error

splash/lua_runner.py:86–92  ·  view source on GitHub ↗

This method is called when an exception happens in a Lua script. It is called with a lupa.LuaError instance and can raise a custom ScriptError.

(self, lua_exception)

Source from the content-addressed store, hash-verified

84 pass
85
86 def on_lua_error(self, lua_exception):
87 """
88 This method is called when an exception happens in a Lua script.
89 It is called with a lupa.LuaError instance and can raise a custom
90 ScriptError.
91 """
92 pass
93
94 def dispatch(self, cmd_id, *args):
95 """ Execute the script """

Callers 1

dispatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected