summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/UnRar.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/UnRar.py')
-rw-r--r--module/plugins/internal/UnRar.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py
index d1f180546..07f3b0f23 100644
--- a/module/plugins/internal/UnRar.py
+++ b/module/plugins/internal/UnRar.py
@@ -212,8 +212,10 @@ class UnRar(Extractor):
args.append("-y")
#: Set a password
- if kwargs.get('password'):
- args.append("-p%s" % kwargs['password'])
+ password = kwargs.get('password')
+
+ if password:
+ args.append("-p%s" % password)
else:
args.append("-p-")