From 7242261f163acb0343d7ffbbf1ec93da45903460 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 10 Oct 2011 07:35:55 +0200 Subject: [PATCH] urllib2.URLError may not have attribute "reason" --- client-barcode/freitagskasse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-barcode/freitagskasse.py b/client-barcode/freitagskasse.py index 1d56342..3faa091 100644 --- a/client-barcode/freitagskasse.py +++ b/client-barcode/freitagskasse.py @@ -307,7 +307,7 @@ def handle(line, status): try: status.login(line) except urllib2.URLError as e: - error_page('FEHLER bei Kommunikation mit Server "%s"' % e.reason) + error_page('FEHLER bei Kommunikation mit Server "%s"' % str(e)) def main():