Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Simple OPDS
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Simple OPDS
Commits
8ab64224
Commit
8ab64224
authored
Mar 27, 2016
by
Dmitry Shelepnev
Browse files
Options
Downloads
Patches
Plain Diff
Replace ZIP error in log to warning.
parent
751a87ad
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
opds_catalog/__pycache__/sopdscan.cpython-35.pyc
+0
-0
0 additions, 0 deletions
opds_catalog/__pycache__/sopdscan.cpython-35.pyc
opds_catalog/sopdscan.py
+2
-2
2 additions, 2 deletions
opds_catalog/sopdscan.py
with
2 additions
and
2 deletions
opds_catalog/__pycache__/sopdscan.cpython-35.pyc
+
0
−
0
View file @
8ab64224
No preview for this file type
This diff is collapsed.
Click to expand it.
opds_catalog/sopdscan.py
+
2
−
2
View file @
8ab64224
...
@@ -119,12 +119,12 @@ class opdsScanner:
...
@@ -119,12 +119,12 @@ class opdsScanner:
file_size
=
z
.
getinfo
(
n
).
file_size
file_size
=
z
.
getinfo
(
n
).
file_size
self
.
processfile
(
n
,
file
,
z
.
open
(
n
),
cat
,
1
,
file_size
)
self
.
processfile
(
n
,
file
,
z
.
open
(
n
),
cat
,
1
,
file_size
)
except
zipfile
.
BadZipFile
:
except
zipfile
.
BadZipFile
:
self
.
logger
.
error
(
'
Error processing ZIP file =
'
+
file
+
'
book file =
'
+
n
)
self
.
logger
.
warning
(
'
Error processing ZIP file =
'
+
file
+
'
book file =
'
+
n
)
zip_process_error
=
1
zip_process_error
=
1
z
.
close
()
z
.
close
()
self
.
arch_scanned
+=
1
self
.
arch_scanned
+=
1
except
zipfile
.
BadZipFile
:
except
zipfile
.
BadZipFile
:
self
.
logger
.
error
(
'
Error while read ZIP archive. File
'
+
file
+
'
corrupt.
'
)
self
.
logger
.
warning
(
'
Error while read ZIP archive. File
'
+
file
+
'
corrupt.
'
)
zip_process_error
=
1
zip_process_error
=
1
self
.
bad_archives
+=
zip_process_error
self
.
bad_archives
+=
zip_process_error
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment