Older UnRAR exit code is 7 when it is called without parameters
This commit is contained in:
1 parent
01f65220ec
commit
118cf25ff7
1 file changed
+2
-1
+2
-1
@@ -422,7 +422,8 @@ class Ui_KCC(object):
|
|||||||
self.KindleGen = False
|
self.KindleGen = False
|
||||||
formats = ['EPUB', 'CBZ']
|
formats = ['EPUB', 'CBZ']
|
||||||
self.addMessage('Cannot find kindlegen in PATH! MOBI creation will be disabled.', 'warning')
|
self.addMessage('Cannot find kindlegen in PATH! MOBI creation will be disabled.', 'warning')
|
||||||
if call('unrar', stdout=PIPE, stderr=STDOUT, shell=True) == 0:
|
rarExitCode = call('unrar', stdout=PIPE, stderr=STDOUT, shell=True)
|
||||||
|
if rarExitCode == 0 or rarExitCode == 7:
|
||||||
self.UnRAR = True
|
self.UnRAR = True
|
||||||
else:
|
else:
|
||||||
self.UnRAR = False
|
self.UnRAR = False
|
||||||
|
|||||||
Reference in new issue
Block a user