Merge "Fix for a date widget when creating a new TestRun"
diff --git a/testrail_bot/control/celery_tasks/tasks.py b/testrail_bot/control/celery_tasks/tasks.py
index ddca36a..32c3d55 100644
--- a/testrail_bot/control/celery_tasks/tasks.py
+++ b/testrail_bot/control/celery_tasks/tasks.py
@@ -9,7 +9,14 @@
@shared_task
def process_run(bot_run_id, report_id, path, run_date):
- testrail_pipeline.process_test_run(bot_run_id, report_id, path, run_date)
+ try:
+ testrail_pipeline.process_test_run(bot_run_id, report_id, path,
+ run_date)
+ except BaseException as e:
+ with open(path, 'a') as f:
+ f.write("<b style='color:red;background-color:pink'>Task "
+ "completed unsuccessfully</b>\n")
+ f.flush()
@shared_task