From c37bf5e9f582acff5062c1184bdc4a6941755c21 Mon Sep 17 00:00:00 2001 From: Christian Adams Date: Tue, 6 Aug 2019 16:46:18 -0400 Subject: [PATCH] Fix NoneType path error with analytics collection --- awx/main/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 9c7b12b21c..0a41380d03 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -330,10 +330,12 @@ def send_notifications(notification_list, job_id=None): @task() def gather_analytics(): - if settings.PENDO_TRACKING_STATE == 'off': + if not settings.INSIGHTS_TRACKING_STATE: return try: tgz = analytics.gather() + if not tgz: + return logger.debug('gathered analytics: {}'.format(tgz)) analytics.ship(tgz) finally: