projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Catch Exception when necessary
[mudpy.git]
/
mudpy
/
tests
/
selftest.py
diff --git
a/mudpy/tests/selftest.py
b/mudpy/tests/selftest.py
index
500356f
..
6239599
100644
(file)
--- a/
mudpy/tests/selftest.py
+++ b/
mudpy/tests/selftest.py
@@
-270,7
+270,7
@@
def main():
try:
captures[conversant] += lusers[
conversant].read_very_eager().decode("utf-8")
try:
captures[conversant] += lusers[
conversant].read_very_eager().decode("utf-8")
- except:
+ except
Exception
:
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"
@@
-291,7
+291,7
@@
def main():
try:
captures[conversant] += lusers[
conversant].read_very_eager().decode("utf-8")
try:
captures[conversant] += lusers[
conversant].read_very_eager().decode("utf-8")
- except:
+ except
Exception
:
pass
lusers[conversant].close()
logfile = "capture_%s.log" % conversant
pass
lusers[conversant].close()
logfile = "capture_%s.log" % conversant