DawnbrandBots / bastion-for-reddit

A Reddit bot for displaying information about Yu-Gi-Oh! cards.
https://reddit.com/u/BastionBotYuGiOh
GNU Affero General Public License v3.0
0 stars 0 forks source link

Comments thread restart due to comment being deleted before bot could respond #15

Closed kevinlul closed 1 year ago

kevinlul commented 1 year ago
INFO:comments:jja8kk8|/r/yugioh/comments/13a6gog/making_deck_based_on_effectiveness_vs_artistic/jja8kk8/|2023-05-08T01:37:03+00:00
ERROR:comments:Exception in thread
Traceback (most recent call last):
  File "/usr/src/bastion-for-reddit/bot_thread.py", line 58, in run
    self._run()
  File "/usr/src/bastion-for-reddit/stream.py", line 80, in _run
    self._main_loop(subreddits.stream.comments())
  File "/usr/src/bastion-for-reddit/stream.py", line 26, in _main_loop
    summons = self._parse_summons(post)
  File "/usr/src/bastion-for-reddit/stream.py", line 60, in _parse_summons
    if is_author_me(comment):
  File "/usr/src/bastion-for-reddit/antiabuse.py", line 12, in is_author_me
    return comment.author.name == comment._reddit.user.me().name
AttributeError: 'NoneType' object has no attribute 'name'
INFO:comments:Starting