Skip to content

Commit

Permalink
core | ATLASPANDA-781 add check if tasktype is none
Browse files Browse the repository at this point in the history
  • Loading branch information
tkorchug committed Feb 14, 2023
1 parent 4b5a044 commit 6cae239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/libs/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def cleanTaskList(tasks, **kwargs):
else:
task['owner'] = task['username']

if 'tasktype' in task and task['tasktype'].startswith('ana'):
if 'tasktype' in task and task['tasktype'] and task['tasktype'].startswith('ana'):
if 'workinggroup' in task and task['workinggroup'] is not None and task['workinggroup'] != '':
task['category'] = 'group analysis' if 'username' in task and task['username'] not in ('artprod', 'atlevind', 'gangarbt') else 'service'
else:
Expand Down

0 comments on commit 6cae239

Please sign in to comment.