Merge branch 'feature/CHINARPA-5131-5234' into feature/uat-tmp
Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -2095,7 +2095,11 @@ class SearchGBHistoryFileView(GenericView): | ... | @@ -2095,7 +2095,11 @@ class SearchGBHistoryFileView(GenericView): |
2095 | gb_history_file_class = HILGreenBookHistoryFile if business_type in consts.HIL_SET else AFCGreenBookHistoryFile | 2095 | gb_history_file_class = HILGreenBookHistoryFile if business_type in consts.HIL_SET else AFCGreenBookHistoryFile |
2096 | ecm = ECM() | 2096 | ecm = ECM() |
2097 | response_json = ecm.search_doc_info_list(file_path, business_type) | 2097 | response_json = ecm.search_doc_info_list(file_path, business_type) |
2098 | try: | ||
2098 | data_objects = response_json['Envelope']['Body']['executeResponse']['return']['dataPackage']['DataObjects'] | 2099 | data_objects = response_json['Envelope']['Body']['executeResponse']['return']['dataPackage']['DataObjects'] |
2100 | except Exception as e: | ||
2101 | self.exception_log.exception('[SearchGBHistoryFileView] [response_json parse failed] [response_json={0}] [error={1}]'.format(response_json, traceback.format_exc())) | ||
2102 | return response.ok(data=False) | ||
2099 | self.running_log.info('[SearchGBHistoryFileView] [data_objects size={0}] '.format(len(data_objects))) | 2103 | self.running_log.info('[SearchGBHistoryFileView] [data_objects size={0}] '.format(len(data_objects))) |
2100 | for data_object in data_objects: | 2104 | for data_object in data_objects: |
2101 | object_id = data_object['Identity']['ObjectId']['@id'] | 2105 | object_id = data_object['Identity']['ObjectId']['@id'] | ... | ... |
-
Please register or sign in to post a comment