summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Thammi <thammi@chaossource.net> 2012-05-29 15:45:42 +0200
committerGravatar Thammi <thammi@chaossource.net> 2012-05-29 15:45:42 +0200
commit7df1548ce696a656c30f68ecc9aa7ce80f72f0d5 (patch)
treef4423c6b0acfaa56e8b98836915a3782415232e9 /module/plugins/internal
parentMerged in FloFra/pyload/stable (pull request #25) (diff)
downloadpyload-7df1548ce696a656c30f68ecc9aa7ce80f72f0d5.tar.xz
Raise error when unrar is aborted
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/UnRar.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py
index de6215704..9800386b3 100644
--- a/module/plugins/internal/UnRar.py
+++ b/module/plugins/internal/UnRar.py
@@ -128,6 +128,8 @@ class UnRar(AbtractExtractor):
raise WrongPassword
if err.strip(): #raise error if anything is on stderr
raise ArchiveError(err.strip())
+ if p.returncode:
+ raise ArchiveError("Process terminated")
if not self.files:
self.password = password