steemit / steem-python

The official Python (3) library for the Steem Blockchain.
https://steem.io
MIT License
154 stars 100 forks source link

block_interval is None #163

Open hrosspet opened 6 years ago

hrosspet commented 6 years ago

self.config().get("STEEMIT_BLOCK_INTERVAL") returns None.

https://github.com/steemit/steem-python/blob/f3db5e3d9bb6d98a8e2286c91b050813f3311dcc/steem/blockchain.py#L81

I guess the reason is because STEEMIT_BLOCK_INTERVAL got renamed to STEEM_BLOCK_INTERVAL

ktchani commented 6 years ago

This may be a contributing factor in the error that I am experiencing as well:

The stream_comments() line sometime produces the error: line 61, in refresh if not post["permlink"]: TypeError: 'NoneType' object is not subscriptable

I have isolated the issue, and it occurs in this portion of my code: for p in s.stream_comments():

Nesting the entire code in a while True loop still causes the code to stop and loop on this error. I have tried various nodes to no avail.