(plugins, data)
| 673 | log(f"Loaded plugin: {fname}") |
| 674 | else: |
| 675 | log(f"Plugin {fname} has no run(data) function; skipped", "WARN") |
| 676 | except Exception as e: |
| 677 | log(f"Failed loading plugin {fname}: {e}", "ERROR") |
| 678 | return plugins |
| 679 | |
| 680 | |
| 681 | def run_plugins(plugins, data): |
| 682 | for p in plugins: |
| 683 | try: |
| 684 | out = p["run"](data) |
| 685 | if out is not None: |
| 686 | data = out |
no test coverage detected