--> -->
 
 
KeyError
Python 3.7.3: /usr/bin/python3.7
Fri Nov 1 11:29:38 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': 'New article...\n\nYay, I am celebrating being able...zirkels.com/a/new-article-35?ref=ElizabethTubbs\n\n', 'CommentCount': 5, 'Comments': [{'AdditionalCoinRoyaltiesMap': {}, 'AdditionalDESORoyaltiesMap': {}, 'Body': '@dennishlewis , "Now That We Found Love" what ar... out of the looping mess, too!\n\nThank you again. ', 'CommentCount': 2, 'Comments': [{'AdditionalCoinRoyaltiesMap': {}, 'AdditionalDESORoyaltiesMap': {}, 'Body': "What was the solution? (FYI, my zirkels account ...ject account - that's where I'm having the issue.", 'CommentCount': 2, 'Comments': [...], 'ConfirmationBlockHeight': 234113, 'CreatorBasisPoints': 1000, 'DiamondCount': 0, 'DiamondsFromSender': 0, 'HasUnlockable': False, ...}], 'ConfirmationBlockHeight': 233997, 'CreatorBasisPoints': 1000, 'DiamondCount': 1, 'DiamondsFromSender': 0, 'HasUnlockable': False, ...}, {'AdditionalCoinRoyaltiesMap': {}, 'AdditionalDESORoyaltiesMap': {}, 'Body': "Wait I don't even know how you got the music thingy as your featured image but it looks cooooool!", 'CommentCount': 1, 'Comments': [{'AdditionalCoinRoyaltiesMap': {}, 'AdditionalDESORoyaltiesMap': {}, 'Body': 'Wow thank you. Are you talking about our logo or.... I have no idea how I did it. But I like it, too', 'CommentCount': 0, 'Comments': None, 'ConfirmationBlockHeight': 235109, 'CreatorBasisPoints': 1000, 'DiamondCount': 1, 'DiamondsFromSender': 0, 'HasUnlockable': False, ...}], 'ConfirmationBlockHeight': 235102, 'CreatorBasisPoints': 1000, 'DiamondCount': 0, 'DiamondsFromSender': 0, 'HasUnlockable': False, ...}, {'AdditionalCoinRoyaltiesMap': {}, 'AdditionalDESORoyaltiesMap': {}, 'Body': 'Congratulations ', 'CommentCount': 0, 'Comments': None, 'ConfirmationBlockHeight': 233999, 'CreatorBasisPoints': 1000, 'DiamondCount': 0, 'DiamondsFromSender': 0, 'HasUnlockable': False, ...}], 'ConfirmationBlockHeight': 233994, 'CreatorBasisPoints': 1000, 'DiamondCount': 10, 'DiamondsFromSender': 0, 'HasUnlockable': False, ...}}

KeyError: 'BlogDeltaRtfFormat'
      args = ('BlogDeltaRtfFormat',)
      with_traceback = <built-in method with_traceback of KeyError object>