From c4b12d01b526f484e3d42408b9a4b000a45d3f70 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 11 Sep 2023 21:16:16 +0300 Subject: [PATCH] im retarded? --- files/helpers/offsitementions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/offsitementions.py b/files/helpers/offsitementions.py index 2b17af6cf..5fca3d000 100644 --- a/files/helpers/offsitementions.py +++ b/files/helpers/offsitementions.py @@ -44,7 +44,7 @@ def get_mentions(cache, queries, reddit_notifs_users=False): data = sorted(data, key=lambda x: int(x['created_utc']), reverse=True) for thing in data: - if not thing['permalink']: + if not thing.get('permalink'): print(thing, flush=True) continue