apply fix for json parse error
This commit is contained in:
parent
f1037d888d
commit
a9ea094144
@ -119,7 +119,11 @@ class Getter:
|
|||||||
"""
|
"""
|
||||||
r = requests.get(self.url)
|
r = requests.get(self.url)
|
||||||
if r.status_code == 200:
|
if r.status_code == 200:
|
||||||
|
try:
|
||||||
j = r.json()
|
j = r.json()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
for t in j['threads']:
|
for t in j['threads']:
|
||||||
posts = t['posts']
|
posts = t['posts']
|
||||||
for post in posts:
|
for post in posts:
|
||||||
|
Reference in New Issue
Block a user