In situations where any exception needs to be matched in an except
clause, specify the Exception base class so as to be explicit that
it's an intentional choice and not an accidental omission.
try:
captures[conversant] += lusers[
conversant].read_very_eager().decode("utf-8")
try:
captures[conversant] += lusers[
conversant].read_very_eager().decode("utf-8")
pass
if index is not 0:
print("ERROR: luser%s did not receive expected string:\n\n"
pass
if index is not 0:
print("ERROR: luser%s did not receive expected string:\n\n"
try:
captures[conversant] += lusers[
conversant].read_very_eager().decode("utf-8")
try:
captures[conversant] += lusers[
conversant].read_very_eager().decode("utf-8")
pass
lusers[conversant].close()
logfile = "capture_%s.log" % conversant
pass
lusers[conversant].close()
logfile = "capture_%s.log" % conversant