diff --git a/frappe/integration_broker/doctype/integration_service/integration_service.py b/frappe/integration_broker/doctype/integration_service/integration_service.py index 9d36307672..c8f5c96f8b 100644 --- a/frappe/integration_broker/doctype/integration_service/integration_service.py +++ b/frappe/integration_broker/doctype/integration_service/integration_service.py @@ -104,8 +104,8 @@ def get_integration_service_events(): fields=["name"]): controller = get_integration_controller(service.name) - if hasattr(controller, "scheduler_events").items(): - for key, handlers in controller.scheduler_events: + if hasattr(controller, "scheduler_events"): + for key, handlers in controller.scheduler_events.items(): events.setdefault(key, []).extend(handlers) return events