Skip to content

Commit

Permalink
#316 Complete Responder class
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jul 30, 2018
1 parent 1c2287f commit da98038
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion contrib/cortexutils/responder.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,16 @@ def report(self, full_report, ensure_ascii=False):
:param full_report: Responsder results as dict.
:param ensure_ascii: Force ascii output. Default: False"""

operation_list = []
try:
operation_list = self.operations(full_report)
except Exception:
pass

report = {
'success': True,
'full': full_report,
'operations':
'operations': operation_list
}
json.dump(report, self.fpoutput, ensure_ascii=ensure_ascii)

Expand Down

0 comments on commit da98038

Please sign in to comment.