diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2016-01-02 16:01:56 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2016-01-02 16:01:56 +0100 |
commit | 6c75c0363f496df86e9c744a9a946f86f82715fa (patch) | |
tree | 53e5b7f906e2b9fb1d853d2b0599be7a8c5c7a3d /module/plugins/internal/UnRar.py | |
parent | Timeout for http request set to 1 minute + report effective url address in he... (diff) | |
download | pyload-6c75c0363f496df86e9c744a9a946f86f82715fa.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal/UnRar.py')
-rw-r--r-- | module/plugins/internal/UnRar.py | 6 |
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-") |