Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
e80498ad
Commit
e80498ad
authored
May 05, 2005
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove evil bare excepts around connection.close().
parent
9e96d4c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
lib/python/Testing/ZopeTestCase/utils.py
lib/python/Testing/ZopeTestCase/utils.py
+4
-6
No files found.
lib/python/Testing/ZopeTestCase/utils.py
View file @
e80498ad
...
@@ -173,15 +173,13 @@ class ConnectionRegistry:
...
@@ -173,15 +173,13 @@ class ConnectionRegistry:
self
.
_conns
.
append
(
conn
)
self
.
_conns
.
append
(
conn
)
def
close
(
self
,
conn
):
def
close
(
self
,
conn
):
try
:
self
.
_conns
.
remove
(
conn
)
if
self
.
contains
(
conn
):
except
:
pass
self
.
_conns
.
remove
(
conn
)
try
:
conn
.
close
()
conn
.
close
()
except
:
pass
def
closeAll
(
self
):
def
closeAll
(
self
):
for
conn
in
self
.
_conns
:
for
conn
in
self
.
_conns
:
try
:
conn
.
close
()
conn
.
close
()
except
:
pass
self
.
_conns
=
[]
self
.
_conns
=
[]
def
__len__
(
self
):
def
__len__
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment