From 52964c2ff023086c316d26d35be3ddedbbbcfbe4 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Sun, 5 Jul 2026 18:21:29 +0800 Subject: [PATCH] feat: add TaskError exception for task error handling --- module/exception.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/exception.py b/module/exception.py index e9bf713..0212f8a 100644 --- a/module/exception.py +++ b/module/exception.py @@ -29,6 +29,12 @@ class GamePageUnknownError(Exception): pass +class TaskError(Exception): + # An error occurred in task, + # task itself should have error handled before raising TaskError, + # then task will be re-scheduled + pass + class RequestHumanTakeover(Exception): # Request human takeover # Alas is unable to handle such error, probably because of wrong settings.