增加账号回报状态
This commit is contained in:
6
main.py
6
main.py
@@ -47,12 +47,12 @@ def execute_task(tid, task_type, **kwargs):
|
||||
try:
|
||||
result = TASK_TYPE.get(task_type)(**kwargs)
|
||||
task_callback(tid, data=result)
|
||||
except AuthException as e:
|
||||
except (AuthException, OperationFailed) as e:
|
||||
record_full_log(error_logger, e)
|
||||
task_callback(tid, data={}, status='fail', msg=str(e))
|
||||
task_callback(tid, data={}, status=e.error_type, msg=str(e))
|
||||
except Exception as e:
|
||||
record_full_log(error_logger, e)
|
||||
task_callback(tid, data={}, status='fail', msg=str(e))
|
||||
task_callback(tid, data={}, status='failed', msg=str(e))
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user