diff options
| author | 2024-07-06 09:50:39 +0800 | |
|---|---|---|
| committer | 2024-07-06 09:50:39 +0800 | |
| commit | 7e655c96fa5fab04bde014b62c8db3f4b352a5dc (patch) | |
| tree | 37fc8615d32dbb230ef34f2ac74039a3351a24ef /hrc/core.py | |
| parent | e44fe8dfba3a56da39f444cfeb62acd0945a9462 (diff) | |
| download | HydroRollCore-7e655c96fa5fab04bde014b62c8db3f4b352a5dc.tar.gz HydroRollCore-7e655c96fa5fab04bde014b62c8db3f4b352a5dc.zip | |
refactor(core): fix AttributeError: wrong 'rule_disable_hook_func' method
Diffstat (limited to 'hrc/core.py')
| -rw-r--r-- | hrc/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hrc/core.py b/hrc/core.py index cb8da6e..0e124e3 100644 --- a/hrc/core.py +++ b/hrc/core.py @@ -180,8 +180,8 @@ class Core: await hot_reload_task finally: for _rule in self.rules: - for rule_shutdown_hook_func in self._rule_shutdown_hooks: - await rule_shutdown_hook_func(_rule) + for rule_disable_hook_func in self._rule_disable_hooks: + await rule_disable_hook_func(_rule) await _rule.disable() while self._rule_tasks: |
