From 45c7da2a8cf49ebf0be47c1def6e7434722afd1d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 26 Jul 2024 10:51:57 +0100 Subject: [PATCH] Check for dictionary --- webapp_profile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp_profile.py b/webapp_profile.py index 2c1f193ed..10ce2c1db 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -532,6 +532,8 @@ def html_profile_after_search(authorized: bool, minimize_all_images = True i = 0 for item in user_feed: + if not isinstance(item, dict): + continue if item.get('type') and item.get('object'): if str(item['type']) == 'Announce' and \ isinstance(item['object'], str):