From 5deded62d94c04be64d34f6b67d07803eea9b6bf Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 20 Dec 2015 18:43:15 +0100 Subject: Spare code cosmetics --- module/plugins/hoster/SmoozedCom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'module/plugins/hoster/SmoozedCom.py') diff --git a/module/plugins/hoster/SmoozedCom.py b/module/plugins/hoster/SmoozedCom.py index 73dfd9caf..c2cc1f987 100644 --- a/module/plugins/hoster/SmoozedCom.py +++ b/module/plugins/hoster/SmoozedCom.py @@ -43,7 +43,8 @@ class SmoozedCom(MultiHoster): get_data = {'session_key': self.account.get_data('session'), 'url' : pyfile.url} - data = json.loads(self.load("http://www2.smoozed.com/api/check", get=get_data)) + html = self.load("http://www2.smoozed.com/api/check", get=get_data) + data = json.loads(html) if data['state'] != "ok": self.fail(data['message']) -- cgit v1.2.3