fix for exception handlibg if not an HTTP but URLError
This commit is contained in:
parent
83c4e1441d
commit
8d6ff280e3
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue