summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/EmbeduploadCom.py2
-rw-r--r--module/plugins/crypter/SafelinkingNet.py2
-rw-r--r--module/plugins/crypter/ShSt.py2
-rw-r--r--module/plugins/crypter/XupPl.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/crypter/EmbeduploadCom.py b/module/plugins/crypter/EmbeduploadCom.py
index e4a9387ae..957e1efb2 100644
--- a/module/plugins/crypter/EmbeduploadCom.py
+++ b/module/plugins/crypter/EmbeduploadCom.py
@@ -55,7 +55,7 @@ class EmbeduploadCom(Crypter):
try:
header = self.load(link, just_header=True)
if 'location' in header:
- new_links.append(header['location'])
+ new_links.append(header.get('location'))
except BadHeader:
pass
return new_links
diff --git a/module/plugins/crypter/SafelinkingNet.py b/module/plugins/crypter/SafelinkingNet.py
index c5fac837a..a11ae2cd8 100644
--- a/module/plugins/crypter/SafelinkingNet.py
+++ b/module/plugins/crypter/SafelinkingNet.py
@@ -34,7 +34,7 @@ class SafelinkingNet(Crypter):
header = self.load(url, just_header=True)
if 'location' in header:
- self.urls = [header['location']]
+ self.urls = [header.get('location')]
else:
self.error(_("Couldn't find forwarded Link"))
diff --git a/module/plugins/crypter/ShSt.py b/module/plugins/crypter/ShSt.py
index 43cc4e779..429d3f3e2 100644
--- a/module/plugins/crypter/ShSt.py
+++ b/module/plugins/crypter/ShSt.py
@@ -27,5 +27,5 @@ class ShSt(Crypter):
self.req.http.c.setopt(pycurl.USERAGENT, "curl/7.42.1")
#: Fetch the target URL
header = self.load(self.pyfile.url, just_header = True, decode = False)
- target_url = header['location']
+ target_url = header.get('location')
self.urls.append(target_url)
diff --git a/module/plugins/crypter/XupPl.py b/module/plugins/crypter/XupPl.py
index ac918a6de..458372d13 100644
--- a/module/plugins/crypter/XupPl.py
+++ b/module/plugins/crypter/XupPl.py
@@ -21,6 +21,6 @@ class XupPl(Crypter):
def decrypt(self, pyfile):
header = self.load(pyfile.url, just_header=True)
if 'location' in header:
- self.urls = [header['location']]
+ self.urls = [header.get('location')]
else:
self.fail(_("Unable to find link"))