urllib2.URLError may not have attribute "reason"
This commit is contained in:
parent
fafb03c843
commit
7242261f16
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue