btrunghieu commited on
Commit
f557485
1 Parent(s): c19432e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -33,6 +33,7 @@ def parse_comments(response: Response) -> Dict:
33
  data = json.loads(response.text)
34
  except json.JSONDecodeError as e:
35
  log.error(f"Failed to parse JSON response: {e}")
 
36
  return {"comments": [], "total_comments": 0}
37
 
38
  comments_data = data.get("comments", [])
 
33
  data = json.loads(response.text)
34
  except json.JSONDecodeError as e:
35
  log.error(f"Failed to parse JSON response: {e}")
36
+ log.error(f"Response text: {response.text[:200]}")
37
  return {"comments": [], "total_comments": 0}
38
 
39
  comments_data = data.get("comments", [])