Skip to content

Commit d1fbbd3

Browse files
committed
[Bugfix] Push system user have not result may be error, fixed jumpserver#701
1 parent 688a836 commit d1fbbd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/ops/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def get_context_data(self, **kwargs):
7070
context = {
7171
'app': 'Ops',
7272
'action': 'Task record detail',
73-
'results': json.loads(self.object.summary),
73+
'results': json.loads(self.object.summary or '{}'),
7474
}
7575
kwargs.update(context)
7676
return super(TaskDetailView, self).get_context_data(**kwargs)

0 commit comments

Comments
 (0)