Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
33a3d92e
authored
2025-04-02 14:27:45 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ADD:try catch
1 parent
30dda232
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
33a3d92
...
...
@@ -1905,7 +1905,11 @@ class SearchGBHistoryFileView(GenericView):
gb_history_file_class
=
HILGreenBookHistoryFile
if
business_type
in
consts
.
HIL_SET
else
AFCGreenBookHistoryFile
ecm
=
ECM
()
response_json
=
ecm
.
search_doc_info_list
(
file_path
,
business_type
)
data_objects
=
response_json
[
'Envelope'
][
'Body'
][
'executeResponse'
][
'return'
][
'dataPackage'
][
'DataObjects'
]
try
:
data_objects
=
response_json
[
'Envelope'
][
'Body'
][
'executeResponse'
][
'return'
][
'dataPackage'
][
'DataObjects'
]
except
Exception
as
e
:
self
.
exception_log
.
exception
(
'[SearchGBHistoryFileView] [response_json parse failed] [response_json={0}] [error={1}]'
.
format
(
response_json
,
traceback
.
format_exc
()))
return
response
.
ok
(
data
=
False
)
self
.
running_log
.
info
(
'[SearchGBHistoryFileView] [data_objects size={0}] '
.
format
(
len
(
data_objects
)))
for
data_object
in
data_objects
:
object_id
=
data_object
[
'Identity'
][
'ObjectId'
][
'@id'
]
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment