mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
ftrack module does not check IFtrackEventHandlerPaths
This commit is contained in:
parent
12f066bd2c
commit
885b84fc15
1 changed files with 11 additions and 4 deletions
|
|
@ -8,8 +8,7 @@ from openpype_interfaces import (
|
|||
ITrayModule,
|
||||
IPluginPaths,
|
||||
ILaunchHookPaths,
|
||||
ISettingsChangeListener,
|
||||
IFtrackEventHandlerPaths
|
||||
ISettingsChangeListener
|
||||
)
|
||||
from openpype.settings import SaveWarningExc
|
||||
|
||||
|
|
@ -81,9 +80,17 @@ class FtrackModule(
|
|||
|
||||
def connect_with_modules(self, enabled_modules):
|
||||
for module in enabled_modules:
|
||||
if not isinstance(module, IFtrackEventHandlerPaths):
|
||||
if not hasattr(module, "get_event_handler_paths"):
|
||||
continue
|
||||
paths_by_type = module.get_event_handler_paths() or {}
|
||||
|
||||
try:
|
||||
paths_by_type = module.get_event_handler_paths()
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
if not isinstance(paths_by_type, dict):
|
||||
continue
|
||||
|
||||
for key, value in paths_by_type.items():
|
||||
if not value:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue