urllib2.URLError may not have attribute "reason"

This commit is contained in:
Sebastian Pipping 2011-10-10 07:35:55 +02:00
parent fafb03c843
commit 7242261f16
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ def handle(line, status):
try: try:
status.login(line) status.login(line)
except urllib2.URLError as e: 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(): def main():