Advertisement
basedcount_bot

AttributeError: 'NoneType' object has no attribute 'name'

Dec 19th, 2024
28
0
4 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "/home/gmktec/Programming/Bots/basedcount_bot/basedcount_bot.py", line 46, in wrapper
  3.     await func(reddit_instance, mongo_client)
  4.   File "/home/gmktec/Programming/Bots/basedcount_bot/basedcount_bot.py", line 275, in read_comments
  5.     parent_info = await get_parent_info(comment)
  6.                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  7.   File "/home/gmktec/Programming/Bots/basedcount_bot/basedcount_bot.py", line 237, in get_parent_info
  8.     parent_author = parent_post.author.name
  9.                     ^^^^^^^^^^^^^^^^^^^^^^^
  10. AttributeError: 'NoneType' object has no attribute 'name'
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement