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