Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
handle empty data in task status (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielui authored May 30, 2023
1 parent aad4bab commit df692a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vmngclient/api/task_status_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def check_status(task_data: List[SubTaskData]) -> bool:
Returns:
bool: False if condition is met
"""

if not task_data:
return True
task_statuses_success = [task.status in success_statuses for task in task_data]
task_statuses_failure = [task.status in failure_statuses for task in task_data]
task_statuses_id_success = [task.status_id in success_statuses_ids for task in task_data]
Expand Down

0 comments on commit df692a8

Please sign in to comment.