From a2835bbbcf1b75aa0c20cd1106e895593fd86a43 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 6 Jun 2018 19:40:08 -0400 Subject: [PATCH] Should fix problem when comment/post with subdir doesn't exist pt. 2 --- queue_reddit_links.py | 1 + 1 file changed, 1 insertion(+) diff --git a/queue_reddit_links.py b/queue_reddit_links.py index 0e904d4..6253bfc 100644 --- a/queue_reddit_links.py +++ b/queue_reddit_links.py @@ -36,6 +36,7 @@ def handle_subdir_repost(website_id, reddit_obj): subdir_stats = db.get_subdir_stats(website_id, subdir) if subdir_stats["total_size"] <= 0: message += " but I couldn't calculate the size of this subdirectory." + else: tables["Subdirectory `/" + subdir + "`:"] = subdir_stats comment = bot.get_comment(tables, website_id, message) print(comment)