steemit / steem-python

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

steem.post() doesn't work when contains single quotes in body #4

Closed oflyhigh closed 7 years ago

oflyhigh commented 7 years ago

I encountered some problems when I tried to use python-steem to post on steemit. I will simplify the problem into the following code

from steem import Steem

tags=['test', 'spam']

content1 = "Test only, don't upvote"
content2 = "Test only, dont upvote"

steem=Steem()
steem.post(title='test only', body=content1, author='oflyhigh', tags=tags)
print("Done!")

The content1 doesn't work but content2 works well. And all of them work well under piston.

So, what's wrong?


Error message:

ValueError: Invalid TransactionBuilder Format

Netherdrake commented 7 years ago

Thank you for reporting this :)

oflyhigh commented 7 years ago

You are welcome!