diff --git a/main.py b/main.py index d6f662a..99359b8 100644 --- a/main.py +++ b/main.py @@ -39,7 +39,9 @@ async def get_latest_post(subreddit): return post["title"], post["url"] except (KeyError, json.JSONDecodeError): return None, None - return None, None + else: + print(f"Failed to fetch Reddit data (maybe a block?): {response.status_code}") + return None, None @bot.command() async def setChannel(message):