From 26d25c5067075368cdf8e3b92816185975fc39ab Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 25 Mar 2021 10:58:53 +0000 Subject: [PATCH] Check following is a dict --- desktop_client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop_client.py b/desktop_client.py index a085ab00f..90d16a242 100644 --- a/desktop_client.py +++ b/desktop_client.py @@ -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('')