summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfb.py2
1 files changed, 2 insertions, 0 deletions
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: