forked from indymedia/epicyon
Check that object is dict
parent
fc7420b2c3
commit
445e49b1d0
4
inbox.py
4
inbox.py
|
@ -680,6 +680,10 @@ def populateReplies(baseDir :str,httpPrefix :str,domain :str, \
|
|||
if debug:
|
||||
print('DEBUG: replied to post has no object - '+postFilename)
|
||||
return False
|
||||
if not isinstance(repliedToJson['object'], dict):
|
||||
if debug:
|
||||
print('DEBUG: replied to post object is not dict - '+postFilename)
|
||||
return False
|
||||
if not repliedToJson['object'].get('replies'):
|
||||
if debug:
|
||||
print('DEBUG: replied to post has no replies attribute - '+postFilename)
|
||||
|
|
Loading…
Reference in New Issue