Browse Source

Nonetype object has no attribute update #375 (#374)

pull/1/head
Evgeny Smyshlyaev 6 years ago committed by rozetko
parent
commit
3c0d87e0cc
  1. 1
      analytics/analytics/analytic_unit_manager.py

1
analytics/analytics/analytic_unit_manager.py

@ -74,6 +74,7 @@ class AnalyticUnitManager:
if task['type'] == 'PUSH': if task['type'] == 'PUSH':
# TODO: do it a better way # TODO: do it a better way
res = await worker.recieve_data(data, payload['cache']) res = await worker.recieve_data(data, payload['cache'])
if res:
res.update({ 'analyticUnitId': analytic_unit_id }) res.update({ 'analyticUnitId': analytic_unit_id })
return res return res
elif task['type'] == 'LEARN': elif task['type'] == 'LEARN':

Loading…
Cancel
Save