From 4286c4a895548bdaaa190b248b43b1388e630a62 Mon Sep 17 00:00:00 2001 From: jwansek Date: Fri, 31 Jul 2020 20:02:13 +0100 Subject: fixed a bug with logging --- subreddit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subreddit.py') diff --git a/subreddit.py b/subreddit.py index ff81bc4..eece316 100755 --- a/subreddit.py +++ b/subreddit.py @@ -365,7 +365,7 @@ def main(): with database.Database() as db: if not db.id_in_blacklist(submission.id): db.add_to_blacklist(submission.id) - display("There has been a new submission: '%s', with flair '%s'" % (submission.title, submission.link_flair_text), concerning=comment.permalink) + display("There has been a new submission: '%s', with flair '%s'" % (submission.title, submission.link_flair_text), concerning=submission.permalink) response = None if str(submission.author) not in get_mods(): @@ -374,7 +374,7 @@ def main(): reply.mod.distinguish(sticky = True) reply.mod.approve() - except Exception as e: + except KeyboardInterrupt as e: display("{ERROR} %s" % e) continue -- cgit v1.2.3