summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5552af7)
Within the selftest framework, catch ConnectionResetError exceptions
and provide a clearer error.
index, match, received = lusers[conversant].expect(
[re.compile(question.encode("utf-8"), flags=re.DOTALL)], 5)
captures[conversant] += received.decode("utf-8")
index, match, received = lusers[conversant].expect(
[re.compile(question.encode("utf-8"), flags=re.DOTALL)], 5)
captures[conversant] += received.decode("utf-8")
+ except ConnectionResetError:
+ print("ERROR: Unable to connect to server.")
+ success = False
+ break
except EOFError:
print("ERROR: luser%s premature disconnection expecting:\n\n"
"%s\n\n"
except EOFError:
print("ERROR: luser%s premature disconnection expecting:\n\n"
"%s\n\n"