fix(ruff)

This commit is contained in:
SXP-Simon
2026-03-12 18:47:16 +08:00
parent 2e5ef3eba3
commit 2a1b292ed9
@@ -269,7 +269,11 @@ class AutoScheduler:
def unschedule_jobs(self, context):
"""取消定时任务"""
if not context or not hasattr(context, "cron_manager") or not context.cron_manager:
if (
not context
or not hasattr(context, "cron_manager")
or not context.cron_manager
):
return
scheduler = context.cron_manager.scheduler