diff options
-rw-r--r-- | module/plugins/hooks/UnRar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hooks/UnRar.py b/module/plugins/hooks/UnRar.py index 8875ce95f..8acc853d4 100644 --- a/module/plugins/hooks/UnRar.py +++ b/module/plugins/hooks/UnRar.py @@ -87,7 +87,7 @@ class UnRar(Hook): remove(join(folder, data["name"])) def packageFinished(self, pack): - if pack.password.strip() and pack.password.strip() != "None": + if pack.password and pack.password.strip() and pack.password.strip() != "None": self.addPassword(pack.password.splitlines()) files = [] for fid, data in pack.getChildren().iteritems(): |