zip filter: an exception while opening ie, encrypted file was not catched
This commit is contained in:
parent
061ffda545
commit
d99865dbda
@ -3,7 +3,7 @@
|
|||||||
# Zip file filter for Recoll
|
# Zip file filter for Recoll
|
||||||
|
|
||||||
import rclexecm
|
import rclexecm
|
||||||
from zipfile import ZipFile, error
|
from zipfile import ZipFile
|
||||||
|
|
||||||
class ZipExtractor:
|
class ZipExtractor:
|
||||||
def __init__(self, em):
|
def __init__(self, em):
|
||||||
@ -19,7 +19,7 @@ class ZipExtractor:
|
|||||||
try:
|
try:
|
||||||
docdata = self.zip.read(ipath)
|
docdata = self.zip.read(ipath)
|
||||||
ok = True
|
ok = True
|
||||||
except error, err:
|
except Exception, err:
|
||||||
self.em.rclog("extractone: failed: [%s]" % err)
|
self.em.rclog("extractone: failed: [%s]" % err)
|
||||||
ok = False
|
ok = False
|
||||||
iseof = rclexecm.RclExecM.noteof
|
iseof = rclexecm.RclExecM.noteof
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user