Callback method called when a config value is changed.
(plugin, config: str, value: Optional[Any])
| 11 | |
| 12 | |
| 13 | def on_config_change(plugin, config: str, value: Optional[Any]) -> None: |
| 14 | """Callback method called when a config value is changed. |
| 15 | """ |
| 16 | plugin.log(f"Setting config {config} to {value}") |
| 17 | if value == 'bad value': |
| 18 | raise RpcException("I don't like bad values!") |
| 19 | |
| 20 | |
| 21 | plugin.add_option( |
nothing calls this directly
no test coverage detected