typing to know what returns and needs to be passed, styling fix
This commit is contained in:
@@ -8,7 +8,7 @@ from watchdog.events import FileSystemEventHandler
|
||||
from log.Logger import Logger
|
||||
from .PluginFSHandler import PluginFSHandler
|
||||
import json
|
||||
from .luarails import guardrails_code
|
||||
from .luarails import get_file_contents
|
||||
|
||||
PLUGINS_DIR = Path(__file__).parent / "plugins"
|
||||
HTML_DIR = Path(__file__).parent / "../html"
|
||||
@@ -112,7 +112,7 @@ class PluginManager:
|
||||
|
||||
def _setup_lua_guardrails(self):
|
||||
try:
|
||||
self.lua.execute(guardrails_code)
|
||||
self.lua.execute(get_file_contents("luarails.lua"))
|
||||
except LuaError as e:
|
||||
Logger.log_lua_error(f"Failed to initialize Lua guardrails: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user