diff --git a/client-barcode/freitagskasse.py b/client-barcode/freitagskasse.py index f053109..1f4a5c5 100644 --- a/client-barcode/freitagskasse.py +++ b/client-barcode/freitagskasse.py @@ -352,11 +352,13 @@ def handle(line, status): else: try: status.login(line) - except urllib2.URLError as e: + except urllib2.HTTPError as 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)) + except urllib2.URLError as e: + error_page('FEHLER bei Kommunikation mit Server "%s"' % str(e)) def main():