mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
module just must have implemented webserver_initialization method to be able use webserver module
This commit is contained in:
parent
257a095959
commit
b1db37c4c4
1 changed files with 8 additions and 1 deletions
|
|
@ -28,8 +28,15 @@ class WebServerModule(OpenPypeModule, ITrayService):
|
|||
return
|
||||
|
||||
for module in enabled_modules:
|
||||
if isinstance(module, IWebServerRoutes):
|
||||
if not hasattr(module, "webserver_initialization"):
|
||||
continue
|
||||
|
||||
try:
|
||||
module.webserver_initialization(self.server_manager)
|
||||
except Exception:
|
||||
self.log.warning((
|
||||
"Failed to connect module \"{}\" to webserver."
|
||||
).format(module.name))
|
||||
|
||||
def tray_init(self):
|
||||
self.create_server_manager()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue