diff --git a/handler/checker/check_report.py b/handler/checker/check_report.py index 5e89e15..a112335 100644 --- a/handler/checker/check_report.py +++ b/handler/checker/check_report.py @@ -105,11 +105,7 @@ def export_report_json(self): allMap = self.report_tobeMap() self.stdio.verbose("export_report_json allMap: {0}".format(allMap)) with open(self.report_path + ".json", 'w', encoding='utf-8') as f: - # for python2 and python3 - try: - json.dump(allMap, f, ensure_ascii=False) - except: - f.write(unicode(json.dumps(allMap, ensure_ascii=False))) + json.dump(allMap, f, ensure_ascii=False) def report_tobeMap(self): failMap = {}