From 7df1548ce696a656c30f68ecc9aa7ce80f72f0d5 Mon Sep 17 00:00:00 2001 From: Thammi Date: Tue, 29 May 2012 15:45:42 +0200 Subject: Raise error when unrar is aborted --- module/plugins/internal/UnRar.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'module') 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 -- cgit v1.2.3