feat: thread manager

This commit is contained in:
RedDeadDepresso
2024-07-25 01:03:06 +01:00
parent dfa783a699
commit 758d77fe4b
8 changed files with 84 additions and 82 deletions

View File

@@ -19,6 +19,9 @@ class Request:
logger.info("SCRIPT", "Validating config")
self.validateGamepath()
self._handlers = [x for x in self.handlers if self.isTaskEnabled(x)]
if not self._handlers:
logger.error("SCRIPT", "No task enabled")
if not self._isValid:
raise Exception()