aboutsummaryrefslogtreecommitdiffstats
path: root/subreddit.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2020-07-31 20:02:13 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2020-07-31 20:02:13 +0100
commit4286c4a895548bdaaa190b248b43b1388e630a62 (patch)
tree52ea6a44321ae02744436158974b1928532594d6 /subreddit.py
parent2caf723beae4e1a515e754dcbe5a0ea1cb448d98 (diff)
downloadSmallYTChannelBot-4286c4a895548bdaaa190b248b43b1388e630a62.tar.gz
SmallYTChannelBot-4286c4a895548bdaaa190b248b43b1388e630a62.zip
fixed a bug with logging
Diffstat (limited to 'subreddit.py')
-rwxr-xr-xsubreddit.py4
1 files changed, 2 insertions, 2 deletions
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