You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2015/03/27 19:49:29 UTC

svn commit: r1669657 - /steve/trunk/pysteve/cli/tally.py

Author: humbedooh
Date: Fri Mar 27 18:49:29 2015
New Revision: 1669657

URL: http://svn.apache.org/r1669657
Log:
bork if issue or election is invalid

Modified:
    steve/trunk/pysteve/cli/tally.py

Modified: steve/trunk/pysteve/cli/tally.py
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/cli/tally.py?rev=1669657&r1=1669656&r2=1669657&view=diff
==============================================================================
--- steve/trunk/pysteve/cli/tally.py (original)
+++ steve/trunk/pysteve/cli/tally.py Fri Mar 27 18:49:29 2015
@@ -89,4 +89,7 @@ if baseData and issueData:
         print("Issue:      %s" % issueData['title'])
         print("Votes cast: %u" % len(votes))
         print("\n-----------------\nElection results:\n-----------------")
-        print(prettyprint)
\ No newline at end of file
+        print(prettyprint)
+else:
+    print("No such election or issue!")
+    sys.exit(-1)
\ No newline at end of file