Browse Source

[fix] integration scheduler events

version-14
Rushabh Mehta 8 years ago
parent
commit
01e1a87c5a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      frappe/integration_broker/doctype/integration_service/integration_service.py

+ 2
- 2
frappe/integration_broker/doctype/integration_service/integration_service.py View File

@@ -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

Loading…
Cancel
Save