KeyError | Python 3.7.3: /usr/bin/python3.7 Fri Nov 1 07:22:04 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/atdeso/public_html/python/get-post.py in <module>() |
123 |
124 while offset == 0 or myCounter == 30: |
=> 125 myCounter = mainComments(offset) |
126 offset += 30 |
127 |
myCounter = 0, mainComments = <function mainComments>, offset = 0 |
/home/atdeso/public_html/python/get-post.py in mainComments(commentStart=0) |
60 Posts = desoPosts.getSinglePost(postHashHex,commentLimit=30,commentOffset=commentStart).json() |
61 if offset == 0: |
=> 62 myOps = Posts['PostFound']['PostExtraData']['BlogDeltaRtfFormat'] |
63 myLikes = Posts['PostFound']['LikeCount'] |
64 myDiamonds = Posts['PostFound']['DiamondCount'] |
myOps undefined, Posts = {'PostFound': {'AdditionalCoinRoyaltiesMap': {}, 'AdditionalDESORoyaltiesMap': {}, 'Body': '#64 Regrets by Kenny Rankin \n\nHubert Tubbs intro...𝙚𝙢𝙤𝙫𝙚𝙙 𝙤𝙧 𝙖𝙙𝙙𝙚𝙙 𝙩𝙤 𝙩𝙝𝙚 𝙡𝙞𝙨𝙩 , 𝙋𝙡𝙚𝙖𝙨𝙚 𝙡𝙚𝙩 𝙢𝙚 𝙠𝙣𝙤𝙬!', 'CommentCount': 0, 'Comments': None, 'ConfirmationBlockHeight': 237621, 'CreatorBasisPoints': 1000, 'DiamondCount': 27, 'DiamondsFromSender': 0, 'HasUnlockable': False, ...}} |
KeyError: 'BlogDeltaRtfFormat'
args =
('BlogDeltaRtfFormat',)
with_traceback =
<built-in method with_traceback of KeyError object>