change expected method name to 'get_ftrack_event_handler_paths'

This commit is contained in:
iLLiCiTiT 2021-09-20 19:23:55 +02:00
parent ba6934946f
commit 886188a489
2 changed files with 3 additions and 3 deletions

View file

@ -91,7 +91,7 @@ class ClockifyModule(
"actions": [actions_path]
}
def get_event_handler_paths(self):
def get_ftrack_event_handler_paths(self):
"""Function for Ftrack module to add ftrack event handler paths."""
return {
"user": [CLOCKIFY_FTRACK_USER_PATH],

View file

@ -80,11 +80,11 @@ class FtrackModule(
def connect_with_modules(self, enabled_modules):
for module in enabled_modules:
if not hasattr(module, "get_event_handler_paths"):
if not hasattr(module, "get_ftrack_event_handler_paths"):
continue
try:
paths_by_type = module.get_event_handler_paths()
paths_by_type = module.get_ftrack_event_handler_paths()
except Exception:
continue