Fix NoneType path error with analytics collection

This commit is contained in:
Christian Adams 2019-08-06 16:46:18 -04:00
parent 5ed2a38e1d
commit c37bf5e9f5

View File

@ -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: