diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-10 12:24:47 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-10 12:24:47 +0200 |
commit | 491dc6943323232f3d06003c950718c89316616d (patch) | |
tree | 9a7b3b890ce8815835378deb12e36dc40924958e /module/plugins/hoster/SmoozedCom.py | |
parent | [Addon] Persistent self.info (diff) | |
download | pyload-491dc6943323232f3d06003c950718c89316616d.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/SmoozedCom.py')
-rw-r--r-- | module/plugins/hoster/SmoozedCom.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hoster/SmoozedCom.py b/module/plugins/hoster/SmoozedCom.py index e864bb2c0..29768d50b 100644 --- a/module/plugins/hoster/SmoozedCom.py +++ b/module/plugins/hoster/SmoozedCom.py @@ -59,4 +59,4 @@ class SmoozedCom(MultiHoster): if not "location" in header: self.fail(_("Unable to initialize download")) else: - self.link = header['location'][-1] if isinstance(header['location'], list) else header['location'] + self.link = header.get('location')[-1] if isinstance(header.get('location'), list) else header.get('location') |