typing to know what returns and needs to be passed, styling fix

This commit is contained in:
2025-10-10 13:21:21 +02:00
parent ea3da89d18
commit a74d482d7a
4 changed files with 17 additions and 109 deletions

View File

@@ -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}")