From b2cc4200359e94da78d7dbd2b9c9bc2d5b158a91 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 13 Feb 2016 13:56:19 +0100 Subject: Add some empty lines for readability Signed-off-by: Florian Pritz --- fb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fb.py b/fb.py index cbde9d1..82c4b7e 100755 --- a/fb.py +++ b/fb.py @@ -175,6 +175,7 @@ class CURLWrapper: self.curl.setopt(pycurl.PROGRESSFUNCTION, self.progressBar.progress) #self.curl.setopt(pycurl.MAX_SEND_SPEED_LARGE, 200000) self.curl.perform() + if self.config["debug"]: print(b.getvalue()) @@ -182,6 +183,7 @@ class CURLWrapper: def perform(self): response = self.perform_simple() + try: result = json.loads(response) except ValueError: -- cgit v1.2.3-24-g4f1b