commit 15c886106452f64bdb518acd51517462e8760ff7
parent 61d6024de96729a36f97fa2d990d46142c23348c
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sun, 11 Oct 2015 01:54:18 +0200
better explain
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vote.py b/vote.py
@@ -77,8 +77,8 @@ if __name__ == '__main__':
user = sys.argv[1]
password = sys.argv[2]
except IndexError:
- print(("Usage: %s USERNAME PASSWORD\n"
- "(your USERNAME and PASSWORD"
+ print(("Usage: %s EMAIL PASSWORD\n"
+ "(your EMAIL and PASSWORD"
"with a local republique-numerique.fr account)\n"
"Performs votes given on stdin, see README") %
sys.argv[0], file=sys.stderr)
@@ -90,7 +90,7 @@ if __name__ == '__main__':
f = l.strip().split(' ')
v = vote(s, token, f[0], f[1])
if v != requests.codes.no_content:
- print("Vote for %s failed with status code %d" % (res, code),
+ print("Vote for %s failed with status code %d" % (f[0], v),
file=sys.stderr)