mirror of
https://github.com/simon987/od-database.git
synced 2025-04-18 01:46:46 +00:00
Should fix problem when comment/post with subdir doesn't exist pt. 2
This commit is contained in:
parent
f396d326b9
commit
a2835bbbcf
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user