From d314506fbf15376584ce17e26594ca49609193d8 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 18 Sep 2023 14:47:06 +0300 Subject: [PATCH] fix error in get_mentions --- 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 50e798d3f..36af70449 100644 --- a/files/helpers/offsitementions.py +++ b/files/helpers/offsitementions.py @@ -43,7 +43,7 @@ def get_mentions(cache, queries, reddit_notifs_users=False): continue if thing.get('subreddit_subscribers') and thing['subreddit_subscribers'] < 2: continue - if thing['subreddit_type'] == 'user': continue + if thing.get('subreddit_type') == 'user': continue if thing['subreddit'] in {'IAmA', 'PokemonGoRaids', 'SubSimulatorGPT2', 'SubSimGPT2Interactive'}: continue if 'bot' in thing['author'].lower(): continue if 'AutoModerator' == thing['author']: continue