From 491dc6943323232f3d06003c950718c89316616d Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 10 Oct 2015 12:24:47 +0200 Subject: Spare code cosmetics --- module/plugins/crypter/ShSt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins/crypter/ShSt.py') 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) -- cgit v1.2.3