Skip to content

Commit

Permalink
Merge pull request #83 from aditya-ramabadran/fix_voting_error
Browse files Browse the repository at this point in the history
Fix Error Causing Voting to Fail
  • Loading branch information
John White committed Jan 26, 2018
2 parents 7c77625 + 9bc2f58 commit 7e1a1b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steem/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def vote(self, weight, voter=None):
"""
# Test if post is archived, if so, voting is worthless but just
# pollutes the blockchain and account history
if not self.get('net_rshares'):
if self.get('net_rshares', None) == None:
raise VotingInvalidOnArchivedPost
return self.commit.vote(self.identifier, weight, account=voter)

Expand Down

0 comments on commit 7e1a1b0

Please sign in to comment.