diff --git a/src/sessionmanager/renderers.py b/src/sessionmanager/renderers.py index f91055c..fe955b7 100644 --- a/src/sessionmanager/renderers.py +++ b/src/sessionmanager/renderers.py @@ -87,7 +87,7 @@ def render_newsfeed_item(status, session): if message == "": message = "no description available" # Handle audio rendering. - elif status["type"] == "audio": + elif status["type"] == "audio" and "audio" in status: # removes deleted audios. status["audio"] = clean_audio(status["audio"]) if status["audio"]["count"] == 1: