Check following is a dict

main
Bob Mottram 2021-03-25 10:58:53 +00:00
parent 7aea1105e6
commit 26d25c5067
1 changed files with 4 additions and 0 deletions

View File

@ -1213,6 +1213,10 @@ def _desktopShowFollowing(followingJson: {}, translate: {},
followType='following') -> None:
"""Shows a page of accounts followed
"""
if not isinstance(followingJson, dict):
return
if not followingJson.get('orderedItems'):
return
if not followingJson['orderedItems']:
return
print('')