mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 02:36:44 +00:00
Return if rarfile module is not found
This commit is contained in:
@@ -56,6 +56,7 @@ class CBxArchive:
|
|||||||
import rarfile
|
import rarfile
|
||||||
except ImportError:
|
except ImportError:
|
||||||
self.cbrFile = None
|
self.cbrFile = None
|
||||||
|
return
|
||||||
cbrFile = rarfile.RarFile(self.origFileName)
|
cbrFile = rarfile.RarFile(self.origFileName)
|
||||||
for f in cbrFile.namelist():
|
for f in cbrFile.namelist():
|
||||||
if (f.startswith('__MACOSX') or f.endswith('.DS_Store')):
|
if (f.startswith('__MACOSX') or f.endswith('.DS_Store')):
|
||||||
|
|||||||
Reference in New Issue
Block a user