Skip to content
Snippets Groups Projects
Commit 8ab64224 authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

Replace ZIP error in log to warning.

parent 751a87ad
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment