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
d8ade80c
authored
2021-07-07 15:01:59 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'fix/folder' into feature/0611
2 parents
20afb1b5
71184c42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
src/apps/doc/management/commands/folder_ocr_process.py
src/apps/doc/management/commands/folder_ocr_process.py
View file @
d8ade80
...
...
@@ -333,13 +333,10 @@ class Command(BaseCommand, LoggerMixin):
traceback
.
format_exc
()))
failed_path
=
os
.
path
.
join
(
failed_output_dir
,
'{0}_{1}'
.
format
(
time
.
time
(),
name
))
shutil
.
move
(
path
,
failed_path
)
except
PermissionError
:
except
Exception
as
e
:
os_error_filename_set
.
add
(
name
)
self
.
folder_log
.
error
(
'{0} [
permission
error] [path={1}] [error={2}]'
.
format
(
self
.
folder_log
.
error
(
'{0} [
file move
error] [path={1}] [error={2}]'
.
format
(
self
.
log_base
,
path
,
traceback
.
format_exc
()))
except
Exception
as
e
:
self
.
folder_log
.
error
(
'{0} [file error] [error={1}]'
.
format
(
self
.
log_base
,
traceback
.
format_exc
()))
def
handle
(
self
,
*
args
,
**
kwargs
):
process_list
=
[]
...
...
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