Notifications in views.py now set error correctly

While the notifications there are error messages they were not
noted down as such previously.

Change-Id: If831fdbd6686dd9a42f33828c4bf69f53028e300
This commit is contained in:
Amelia Cordwell 2017-07-27 12:43:12 +12:00
parent 4dadabd13d
commit f13fc00f3e
1 changed files with 6 additions and 6 deletions

View File

@ -312,7 +312,7 @@ class TaskDetail(APIViewWithLogger):
"See task itself for details.") % e],
'task': task.uuid
}
create_notification(task, notes)
create_notification(task, notes, error=True)
import traceback
trace = traceback.format_exc()
@ -412,7 +412,7 @@ class TaskDetail(APIViewWithLogger):
"See task itself for details.") % e],
'task': task.uuid
}
create_notification(task, notes)
create_notification(task, notes, error=True)
import traceback
trace = traceback.format_exc()
@ -448,7 +448,7 @@ class TaskDetail(APIViewWithLogger):
"itself for details.") % e],
'task': task.uuid
}
create_notification(task, notes)
create_notification(task, notes, error=True)
import traceback
trace = traceback.format_exc()
@ -474,7 +474,7 @@ class TaskDetail(APIViewWithLogger):
"itself for details.") % e],
'task': task.uuid
}
create_notification(task, notes)
create_notification(task, notes, error=True)
import traceback
trace = traceback.format_exc()
@ -619,7 +619,7 @@ class TokenList(APIViewWithLogger):
],
'task': task.uuid
}
create_notification(task, notes)
create_notification(task, notes, error=True)
import traceback
trace = traceback.format_exc()
@ -766,7 +766,7 @@ class TokenDetail(APIViewWithLogger):
"See task itself for details.") % e],
'task': token.task.uuid
}
create_notification(token.task, notes)
create_notification(token.task, notes, error=True)
import traceback
trace = traceback.format_exc()