From 83c4e1441d803cbcee02f35f1ce00968701a8bd5 Mon Sep 17 00:00:00 2001 From: Florian Streibelt Date: Wed, 12 Oct 2011 01:35:07 +0200 Subject: [PATCH] one typo and one bugfix for user unknown on login --- client-barcode/freitagskasse.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client-barcode/freitagskasse.py b/client-barcode/freitagskasse.py index 17a3b84..f053109 100644 --- a/client-barcode/freitagskasse.py +++ b/client-barcode/freitagskasse.py @@ -70,7 +70,7 @@ def delay(what, seconds): def warn_balance(): - print('Kontostrand im Minus, bitte Geld aufladen.') + print('Kontostand im Minus, bitte Geld aufladen.') def error_page(message): @@ -353,7 +353,10 @@ def handle(line, status): try: status.login(line) except urllib2.URLError as e: - error_page('FEHLER bei Kommunikation mit Server "%s"' % str(e)) + if e.code == 404: # URL not found == user unknown + error_page('FEHLER: Benutzer "%s" nicht bekannt' % line) + else: + error_page('FEHLER bei Kommunikation mit Server "%s"' % str(e)) def main():