Skip to content

Commit 4adb83f

Browse files
committed
Add else statement to task creation loop
1 parent c8e8d7c commit 4adb83f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_tasks/test_task.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ def test_upload_task(self):
6969
continue
7070
else:
7171
raise e
72+
else:
73+
raise ValueError(
74+
'Could not create a valid task for task type ID {}'.format(self.task_type_id)
75+
)
7276

7377
_delete_entity('task', task_id)
7478

0 commit comments

Comments
 (0)