Author: humbedooh
Date: Thu Mar 26 11:15:28 2015
New Revision: 1669320
URL: http://svn.apache.org/r1669320
Log:
shorten, as per gstein's comment.
probably needs to be applied in other places too
Modified:
steve/trunk/pysteve/lib/election.py
Modified: steve/trunk/pysteve/lib/election.py
URL:
http://svn.apache.org/viewvc/steve/trunk/pysteve/lib/election.py?rev=1669320&r1=1669319&r2=1669320&view=diff
==============================================================================
--- steve/trunk/pysteve/lib/election.py (original)
+++ steve/trunk/pysteve/lib/election.py Thu Mar 26 11:15:28 2015
@@ -164,7 +164,7 @@ def vote(electionID, issueID, voterID, v
# Vote verification
voteType = getVoteType(issueData)
- if 'vote_func' in voteType and voteType['vote_func']:
+ if voteType.get('vote_func'):
# This will/should raise an exception if the vote is invalid
voteType['vote_func'](basedata, issueID, voterID, vote)