diff options
| author | Ciro Mattia Gonano <[email protected]> | 2012-12-06 15:11:57 +0100 |
|---|---|---|
| committer | Ciro Mattia Gonano <[email protected]> | 2012-12-06 15:11:57 +0100 |
| commit | 8fdcc7e886a10a15ebf279a60bdb9b1d8cdb335c (patch) | |
| tree | f4fb9b7c3b4ef8b7b2b480aab10f7a8faf6a1e30 | |
| parent | Ensure filelist is alphabetically sorted (diff) | |
| download | kcc-8fdcc7e886a10a15ebf279a60bdb9b1d8cdb335c.tar.gz kcc-8fdcc7e886a10a15ebf279a60bdb9b1d8cdb335c.tar.bz2 kcc-8fdcc7e886a10a15ebf279a60bdb9b1d8cdb335c.zip | |
Return if rarfile module is not found
| -rw-r--r-- | cbxarchive.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cbxarchive.py b/cbxarchive.py index 18fe690..c852bba 100644 --- a/cbxarchive.py +++ b/cbxarchive.py @@ -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')): |