summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FreeWayMe.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-10 12:24:47 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-10 12:24:47 +0200
commit491dc6943323232f3d06003c950718c89316616d (patch)
tree9a7b3b890ce8815835378deb12e36dc40924958e /module/plugins/hoster/FreeWayMe.py
parent[Addon] Persistent self.info (diff)
downloadpyload-491dc6943323232f3d06003c950718c89316616d.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/FreeWayMe.py')
-rw-r--r--module/plugins/hoster/FreeWayMe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/FreeWayMe.py b/module/plugins/hoster/FreeWayMe.py
index c0053fc76..501b544c6 100644
--- a/module/plugins/hoster/FreeWayMe.py
+++ b/module/plugins/hoster/FreeWayMe.py
@@ -38,13 +38,13 @@ class FreeWayMe(MultiHoster):
just_header=True)
if 'location' in header:
- headers = self.load(header['location'], just_header=True)
+ headers = self.load(header.get('location'), just_header=True)
if headers['code'] == 500:
#: Error on 2nd stage
self.log_error(_("Error [stage2]"))
else:
#: Seems to work..
- self.download(header['location'])
+ self.download(header.get('location'))
break
else:
#: Error page first stage